Skip to content
Snippets Groups Projects
Commit cdba5b33 authored by Adrien Béraud's avatar Adrien Béraud
Browse files

proxy server: add options to listen route

parent 81bd05fe
Branches
Tags
No related merge requests found
...@@ -631,6 +631,8 @@ DhtProxyServer::createRestRouter() ...@@ -631,6 +631,8 @@ DhtProxyServer::createRestRouter()
router->http_get("/key/:hash", std::bind(&DhtProxyServer::get, this, _1, _2)); router->http_get("/key/:hash", std::bind(&DhtProxyServer::get, this, _1, _2));
// key.post // key.post
router->http_post("/key/:hash", std::bind(&DhtProxyServer::put, this, _1, _2)); 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 // key.listen
router->http_get("/key/:hash/listen", std::bind(&DhtProxyServer::listen, this, _1, _2)); router->http_get("/key/:hash/listen", std::bind(&DhtProxyServer::listen, this, _1, _2));
#ifdef OPENDHT_PUSH_NOTIFICATIONS #ifdef OPENDHT_PUSH_NOTIFICATIONS
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment