finish stubbing out non-controller endpoints

This commit is contained in:
Grant Limberg 2023-04-26 15:13:28 -07:00
parent 7d9af55411
commit cb1eb84df8
No known key found for this signature in database
GPG key ID: 8F2F97D3BE8D7735

View file

@ -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();