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 724B

1234567891011121314151617181920212223
  1. <?php
  2. use App\Http\DBO\Permissions;
  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. LuticateBusiness::setupAuth();
  9. LuticateBusiness::setupRoutes("/api/luticate");
  10. LuDocBusiness::setupRoutes("/api/luticate");
  11. $image_id = "{image_id:$int}";
  12. $route->post("/api/effects/{effect}/apply", "Effects", "apply", Permissions::UPLOAD);
  13. $route->get("/api/images", "Images", "getAll");
  14. $route->get("/api/images/$image_id", "Images", "getRawById");
  15. $route->post("/api/images/upload", "Images", "upload", Permissions::UPLOAD);
  16. $route->post("/api/images/$image_id/del", "Images", "del", Permissions::UPLOAD);