Initial project setup
This commit is contained in:
21
Web/FrontController.hs
Normal file
21
Web/FrontController.hs
Normal file
@@ -0,0 +1,21 @@
|
||||
module Web.FrontController where
|
||||
|
||||
import IHP.RouterPrelude
|
||||
import Web.Controller.Prelude
|
||||
import Web.View.Layout (defaultLayout)
|
||||
|
||||
-- Controller Imports
|
||||
import Web.Controller.Entries
|
||||
import Web.Controller.Static
|
||||
|
||||
instance FrontController WebApplication where
|
||||
controllers =
|
||||
[ startPage TodayAction
|
||||
-- Generator Marker
|
||||
, parseRoute @EntriesController
|
||||
]
|
||||
|
||||
instance InitControllerContext WebApplication where
|
||||
initContext = do
|
||||
setLayout defaultLayout
|
||||
initAutoRefresh
|
||||
Reference in New Issue
Block a user