瀏覽代碼

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

Loading…
取消
儲存