redirect to /dashboard
This commit is contained in:
parent
0544818e59
commit
6f8693c59a
2 changed files with 7 additions and 4 deletions
|
@ -83,9 +83,12 @@ getDashboardR = ifM inFirstRun
|
|||
, page "" (Just DashBoard) $ dashboard True
|
||||
)
|
||||
|
||||
getMainR :: Handler Html
|
||||
getMainR = redirect DashboardR
|
||||
|
||||
{- Used to test if the webapp is running. -}
|
||||
headDashboardR :: Handler ()
|
||||
headDashboardR = noop
|
||||
headMainR :: Handler ()
|
||||
headMainR = noop
|
||||
|
||||
{- Same as DashboardR, except no autorefresh at all (and no noscript warning). -}
|
||||
getNoScriptR :: Handler Html
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/ DashboardR GET HEAD
|
||||
/dashboard DashboardR GET HEAD
|
||||
/ MainR GET HEAD
|
||||
/dashboard DashboardR GET
|
||||
|
||||
/noscript NoScriptR GET
|
||||
/noscript/auto NoScriptAutoR GET
|
||||
|
|
Loading…
Reference in a new issue