| 347 | } |
| 348 | |
| 349 | void Server::registerHandler(const std::string& path, Server::HttpHandler handler) |
| 350 | { |
| 351 | { |
| 352 | std::lock_guard<std::mutex> lock(handlersMutex); |
| 353 | handlers[path] = handler; |
| 354 | } |
| 355 | Logging::info("Registered HTTP handler for path {}", path); |
| 356 | } |
| 357 | |
| 358 | void Server::unregisterHandler(const std::string& path) |
| 359 | { |