diff --git a/src/dht_proxy_server.cpp b/src/dht_proxy_server.cpp index e023a3b0b..f1c021547 100644 --- a/src/dht_proxy_server.cpp +++ b/src/dht_proxy_server.cpp @@ -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