| 351 | } |
| 352 | |
| 353 | void Server::registerUploadHandler(const std::string& path, const std::string& tmpPath, Server::UploadHandler handler) |
| 354 | { |
| 355 | { |
| 356 | std::lock_guard<std::mutex> lock(handlersMutex); |
| 357 | uploadHandlers[path] = {tmpPath, handler}; |
| 358 | } |
| 359 | Logging::info("Registered upload handler for path {}", path); |
| 360 | } |
| 361 | |
| 362 | bool Server::isRunning(void) |
| 363 | { |