123456789101112131415161718192021 |
- <?php
-
- use App\Http\DBO\CamotionPermissions;
- use Luticate\Auth\Business\LuticateBusiness;
- use Luticate\Doc\Business\LuDocBusiness;
- use Luticate\Utils\LuRoute;
-
- $route = LuRoute::getInstance();
-
- $int = LuRoute::REG_INT;
- $host_id = "{host_id:$int}";
-
- LuticateBusiness::setupAuth();
- LuticateBusiness::setupRoutes();
- LuDocBusiness::setupRoutes("/camotion");
-
- $route->get("/hosts", "Hosts", "getAll", CamotionPermissions::HOST_GET);
- $route->get("/hosts/$host_id", "Hosts", "get", CamotionPermissions::HOST_GET);
- $route->post("/hosts/add", "Hosts", "add", array(CamotionPermissions::HOST_GET, CamotionPermissions::HOST_ADD));
- $route->post("/hosts/$host_id/edit", "Hosts", "edit", array(CamotionPermissions::HOST_GET, CamotionPermissions::HOST_EDIT));
- $route->post("/hosts/$host_id/del", "Hosts", "del", array(CamotionPermissions::HOST_GET, CamotionPermissions::HOST_DEL));
|