mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-08-22 06:14:02 -07:00
network post/put/delete endpoint regex
This commit is contained in:
parent
fa8d837814
commit
2911bac529
1 changed files with 3 additions and 3 deletions
|
@ -1767,10 +1767,10 @@ public:
|
|||
}
|
||||
setContent(req, res, out.dump());
|
||||
};
|
||||
_controlPlane.Post("/network/([0-9a-fA-F])", networkPost);
|
||||
_controlPlane.Put("/network/([0-9a-fA-F])", networkPost);
|
||||
_controlPlane.Post("/network/([0-9a-fA-F]{16})", networkPost);
|
||||
_controlPlane.Put("/network/([0-9a-fA-F]){16}", networkPost);
|
||||
|
||||
_controlPlane.Delete("/network/([0-9a-fA-F])", [&](const httplib::Request &req, httplib::Response &res) {
|
||||
_controlPlane.Delete("/network/([0-9a-fA-F]{16})", [&](const httplib::Request &req, httplib::Response &res) {
|
||||
auto input = req.matches[1];
|
||||
auto out = json::object();
|
||||
ZT_VirtualNetworkList *nws = _node->networks();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue