From cb1eb84df810366fa35d4b3ea82f2065d4ad66bc Mon Sep 17 00:00:00 2001 From: Grant Limberg Date: Wed, 26 Apr 2023 15:13:28 -0700 Subject: [PATCH] finish stubbing out non-controller endpoints --- service/OneService.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/service/OneService.cpp b/service/OneService.cpp index d9ce5787b..67a441441 100644 --- a/service/OneService.cpp +++ b/service/OneService.cpp @@ -1614,6 +1614,10 @@ public: _controlPlane.Post("/moon/([0-9a-fA-F]{10})", moonPost); _controlPlane.Put("/moon/([0-9a-fA-F]{10})", moonPost); + _controlPlane.Delete("/moon/([0-9a-fA-F]{10})", [this](const httplib::Request &req, httplib::Response &res) { + // TODO + }); + _controlPlane.Get("/network", [this](const httplib::Request &req, httplib::Response &res) { Mutex::Lock _l(_nets_m); auto response = json::array(); @@ -1650,6 +1654,10 @@ public: _controlPlane.Post("/network/([0-9a-fA-F])", networkPost); _controlPlane.Put("/network/([0-9a-fA-F])", networkPost); + _controlPlane.Delete("/network/([0-9a-fA-F])", [this](const httplib::Request &req, httplib::Response &res) { + + }); + _controlPlane.Get("/peer", [this](const httplib::Request &req, httplib::Response &res) { ZT_PeerList *pl = _node->peers(); auto out = nlohmann::json::array();