| 365 | } |
| 366 | |
| 367 | void Server::unregisterHandler(const std::string& path) |
| 368 | { |
| 369 | { |
| 370 | std::lock_guard<std::mutex> lock(handlersMutex); |
| 371 | handlers.erase(path); |
| 372 | uploadHandlers.erase(path); |
| 373 | } |
| 374 | Logging::info("Unregistered HTTP handler for path {}", path); |
| 375 | } |
| 376 | |
| 377 | void Server::registerUploadHandler(const std::string& path, const std::string& tmpPath, Server::UploadHandler handler) |
| 378 | { |