| 371 | } |
| 372 | |
| 373 | void Server::registerHandler(const std::string& path, Server::HttpHandler handler) |
| 374 | { |
| 375 | { |
| 376 | std::lock_guard<std::mutex> lock(handlersMutex); |
| 377 | handlers[path] = handler; |
| 378 | } |
| 379 | Logging::info("Registered HTTP handler for path {}", path); |
| 380 | } |
| 381 | |
| 382 | void Server::unregisterHandler(const std::string& path) |
| 383 | { |