1
0
mirror of https://github.com/lxsang/antd-web-apps synced 2025-07-17 06:09:50 +02:00
This commit is contained in:
Xuan Sang LE
2018-08-28 14:49:03 +02:00
parent 692d437c67
commit 0817dd6079
23 changed files with 1632 additions and 92 deletions

View File

@ -21,7 +21,7 @@ function Router:infer(url)
-- a is controller name
-- b is action
-- c,d,e is parameters
-- if user dont provice the url, try to infer it
-- if user dont provide the url, try to infer it
-- from the REQUEST
url = url or REQUEST.query.r
url = std.trim(url, "/")
@ -84,6 +84,7 @@ function Router:delegate()
data.controller.main = true
views.__main__ = self:call(data)
if not views.__main__ then
--self:error("No main template is set")
return
end
-- get all visible routes