mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-07 21:13:44 +02:00
finish stubbing out non-controller endpoints
This commit is contained in:
parent
7d9af55411
commit
cb1eb84df8
1 changed files with 8 additions and 0 deletions
|
@ -1614,6 +1614,10 @@ public:
|
||||||
_controlPlane.Post("/moon/([0-9a-fA-F]{10})", moonPost);
|
_controlPlane.Post("/moon/([0-9a-fA-F]{10})", moonPost);
|
||||||
_controlPlane.Put("/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) {
|
_controlPlane.Get("/network", [this](const httplib::Request &req, httplib::Response &res) {
|
||||||
Mutex::Lock _l(_nets_m);
|
Mutex::Lock _l(_nets_m);
|
||||||
auto response = json::array();
|
auto response = json::array();
|
||||||
|
@ -1650,6 +1654,10 @@ public:
|
||||||
_controlPlane.Post("/network/([0-9a-fA-F])", networkPost);
|
_controlPlane.Post("/network/([0-9a-fA-F])", networkPost);
|
||||||
_controlPlane.Put("/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) {
|
_controlPlane.Get("/peer", [this](const httplib::Request &req, httplib::Response &res) {
|
||||||
ZT_PeerList *pl = _node->peers();
|
ZT_PeerList *pl = _node->peers();
|
||||||
auto out = nlohmann::json::array();
|
auto out = nlohmann::json::array();
|
||||||
|
|
Loading…
Add table
Reference in a new issue