1234567891011121314151617181920212223 |
- <?php
-
- use Luticate\Auth\Business\LuticateBusiness;
- use Luticate\Doc\Business\LuDocBusiness;
- use Luticate\Utils\LuRoute;
-
- $route = LuRoute::getInstance();
-
- $int = LuRoute::REG_UINT;
- $domain_id = "{domain_id:$int}";
- $record_id = "{record_id:$int}";
-
- LuticateBusiness::setupAuth();
- LuticateBusiness::setupRoutes();
- LuDocBusiness::setupRoutes("/lunet");
-
- $route->get("/dns", "DnsDomains", "getAll");
- $route->post("/dns/add", "DnsDomains", "add");
- $route->post("/dns/$domain_id/del", "DnsDomains", "del");
-
- $route->get("/dns/$domain_id/records", "DnsRecords", "getAll");
- $route->post("/dns/$domain_id/records/add", "DnsRecords", "add");
- $route->post("/dns/$domain_id/records/$record_id/del", "DnsRecords", "del");
|