| 390 | } |
| 391 | |
| 392 | void Server::registerUploadHandler(const std::string& path, const std::string& tmpPath, Server::UploadHandler handler) |
| 393 | { |
| 394 | { |
| 395 | std::lock_guard<std::mutex> lock(handlersMutex); |
| 396 | uploadHandlers[path] = {tmpPath, handler}; |
| 397 | } |
| 398 | Logging::info("Registered upload handler for path {}", path); |
| 399 | } |
| 400 | |
| 401 | bool Server::isRunning(void) |
| 402 | { |