| 356 | } |
| 357 | |
| 358 | void Server::registerHandler(const std::string& path, Server::HttpHandler handler) |
| 359 | { |
| 360 | { |
| 361 | std::lock_guard<std::mutex> lock(handlersMutex); |
| 362 | handlers[path] = handler; |
| 363 | } |
| 364 | Logging::info("Registered HTTP handler for path {}", path); |
| 365 | } |
| 366 | |
| 367 | void Server::unregisterHandler(const std::string& path) |
| 368 | { |