浏览代码

move routing out of main.cfg

master
Dom SP 3 年前
父节点
当前提交
37f25b670c
共有 2 个文件被更改,包括 10 次插入10 次删除
  1. +0
    -10
      main.cfg.sample
  2. +10
    -0
      routes.cfg

+ 0
- 10
main.cfg.sample 查看文件

@@ -1,15 +1,5 @@
SITE_URL =

[routes]
GET / = Controller\Page->home
GET /home = Controller\Page->home
GET /login = Controller\User->login
GET /register = Controller\User->register
GET @page: /@page = Controller\Page->index
GET /@level1/@level2 = Controller\Page->secondLevel
GET /@level1/@level2/@level3 = Controller\Page->thirdLevel
GET /@level1/@level2/@level3/@level4 = Controller\Page->fourthLevel


[configs]
content/navi.cfg=false

+ 10
- 0
routes.cfg 查看文件

@@ -0,0 +1,10 @@
[routes]
GET / = Controller\Page->home
GET /home = Controller\Page->home
GET /login = Controller\User->login
GET /register = Controller\User->register
GET @page: /@page = Controller\Page->index
GET /@level1/@level2 = Controller\Page->secondLevel
GET /@level1/@level2/@level3 = Controller\Page->thirdLevel
GET /@level1/@level2/@level3/@level4 = Controller\Page->fourthLevel

正在加载...
取消
保存