| 366 | } |
| 367 | |
| 368 | void Server::registerUploadHandler(const std::string& path, const std::string& tmpPath, Server::UploadHandler handler) |
| 369 | { |
| 370 | { |
| 371 | std::lock_guard<std::mutex> lock(handlersMutex); |
| 372 | uploadHandlers[path] = {tmpPath, handler}; |
| 373 | } |
| 374 | Logging::info("Registered upload handler for path {}", path); |
| 375 | } |
| 376 | |
| 377 | bool Server::isRunning(void) |
| 378 | { |