|
@@ -0,0 +1,24 @@
|
|
1
|
+<?php
|
|
2
|
+
|
|
3
|
+require_once("lib/limonade.php");
|
|
4
|
+
|
|
5
|
+dispatch_get("/", "login");
|
|
6
|
+dispatch_get("/data", "data");
|
|
7
|
+dispatch_get("/data/extract", "data_extract");
|
|
8
|
+dispatch_get("/files", "files");
|
|
9
|
+dispatch_get("/promo", "promo");
|
|
10
|
+
|
|
11
|
+dispatch_post("/", "check_login");
|
|
12
|
+dispatch_post("/files", "add_file");
|
|
13
|
+dispatch_post("/promo", "add_promo");
|
|
14
|
+
|
|
15
|
+dispatch_put("/data/:dataid", "alter_data");
|
|
16
|
+dispatch_put("/files/:fileid", "alter_file");
|
|
17
|
+dispatch_put("/promo/:promoid", "alter_promo");
|
|
18
|
+
|
|
19
|
+dispatch_delete("/files/:fileid", "delete_file");
|
|
20
|
+dispatch_delete("/promo/:promoid", "delete_promo");
|
|
21
|
+
|
|
22
|
+run();
|
|
23
|
+
|
|
24
|
+?>
|