| 341 | } |
| 342 | |
| 343 | void Server::unregisterHandler(const std::string& path) |
| 344 | { |
| 345 | { |
| 346 | std::lock_guard<std::mutex> lock(handlersMutex); |
| 347 | handlers.erase(path); |
| 348 | uploadHandlers.erase(path); |
| 349 | } |
| 350 | Logging::info("Unregistered HTTP handler for path {}", path); |
| 351 | } |
| 352 | |
| 353 | void Server::registerUploadHandler(const std::string& path, const std::string& tmpPath, Server::UploadHandler handler) |
| 354 | { |