| 332 | } |
| 333 | |
| 334 | void Server::registerHandler(const std::string& path, Server::HttpHandler handler) |
| 335 | { |
| 336 | { |
| 337 | std::lock_guard<std::mutex> lock(handlersMutex); |
| 338 | handlers[path] = handler; |
| 339 | } |
| 340 | Logging::info("Registered HTTP handler for path {}", path); |
| 341 | } |
| 342 | |
| 343 | void Server::unregisterHandler(const std::string& path) |
| 344 | { |