You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

routes.php 710B

1234567891011121314151617181920212223
  1. <?php
  2. use Luticate\Auth\Business\LuticateBusiness;
  3. use Luticate\Doc\Business\LuDocBusiness;
  4. use Luticate\Utils\LuRoute;
  5. $route = LuRoute::getInstance();
  6. $int = LuRoute::REG_UINT;
  7. $domain_id = "{domain_id:$int}";
  8. $record_id = "{record_id:$int}";
  9. LuticateBusiness::setupAuth();
  10. LuticateBusiness::setupRoutes();
  11. LuDocBusiness::setupRoutes("/lunet");
  12. $route->get("/dns", "DnsDomains", "getAll");
  13. $route->post("/dns/add", "DnsDomains", "add");
  14. $route->post("/dns/$domain_id/del", "DnsDomains", "del");
  15. $route->get("/dns/$domain_id/records", "DnsRecords", "getAll");
  16. $route->post("/dns/$domain_id/records/add", "DnsRecords", "add");
  17. $route->post("/dns/$domain_id/records/$record_id/del", "DnsRecords", "del");