index.php 689B

12345678910111213141516171819202122
  1. <?php
  2. require_once("lib/limonade.php");
  3. dispatch_get("/", "login");
  4. dispatch_get("/data", "data");
  5. dispatch_get("/data/extract", "data_extract");
  6. dispatch_get("/document", "document");
  7. dispatch_get("/promo", "promo");
  8. dispatch_post("/", "check_login");
  9. dispatch_post("/files", "add_file");
  10. dispatch_post("/promo", "add_promo");
  11. dispatch_put("/data/:dataid", "alter_data");
  12. dispatch_put("/files/:fileid", "alter_file");
  13. dispatch_put("/promo/:promoid", "alter_promo");
  14. dispatch_delete("/files/:fileid", "delete_file");
  15. dispatch_delete("/promo/:promoid", "delete_promo");
  16. run();