浏览代码

Added controller function calls

Laurent Treguier 9 年前
父节点
当前提交
3fa3ba4b39
共有 1 个文件被更改,包括 24 次插入0 次删除
  1. 24
    0
      index.php

+ 24
- 0
index.php 查看文件

@@ -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
+?>