Skip to content

Commit

Permalink
proxy server: add options to listen route
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrien Béraud committed Nov 20, 2024
1 parent 81bd05f commit cdba5b3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/dht_proxy_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -631,6 +631,8 @@ DhtProxyServer::createRestRouter()
router->http_get("/key/:hash", std::bind(&DhtProxyServer::get, this, _1, _2));
// key.post
router->http_post("/key/:hash", std::bind(&DhtProxyServer::put, this, _1, _2));
router->add_handler(restinio::http_method_options(),
"/key/:hash/listen", std::bind(&DhtProxyServer::options, this, _1, _2));
// key.listen
router->http_get("/key/:hash/listen", std::bind(&DhtProxyServer::listen, this, _1, _2));
#ifdef OPENDHT_PUSH_NOTIFICATIONS
Expand Down

0 comments on commit cdba5b3

Please sign in to comment.