Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

routes.php 866B

123456789101112131415161718192021
  1. <?php
  2. use App\Http\DBO\CamotionPermissions;
  3. use Luticate\Auth\Business\LuticateBusiness;
  4. use Luticate\Doc\Business\LuDocBusiness;
  5. use Luticate\Utils\LuRoute;
  6. $route = LuRoute::getInstance();
  7. $int = LuRoute::REG_INT;
  8. $host_id = "{host_id:$int}";
  9. LuticateBusiness::setupAuth();
  10. LuticateBusiness::setupRoutes();
  11. LuDocBusiness::setupRoutes("/camotion");
  12. $route->get("/hosts", "Hosts", "getAll", CamotionPermissions::HOST_GET);
  13. $route->get("/hosts/$host_id", "Hosts", "get", CamotionPermissions::HOST_GET);
  14. $route->post("/hosts/add", "Hosts", "add", array(CamotionPermissions::HOST_GET, CamotionPermissions::HOST_ADD));
  15. $route->post("/hosts/$host_id/edit", "Hosts", "edit", array(CamotionPermissions::HOST_GET, CamotionPermissions::HOST_EDIT));
  16. $route->post("/hosts/$host_id/del", "Hosts", "del", array(CamotionPermissions::HOST_GET, CamotionPermissions::HOST_DEL));