compareware/Web/FrontController.hs
2023-04-16 12:33:20 +02:00

21 lines
514 B
Haskell

module Web.FrontController where
import IHP.RouterPrelude
import Web.Controller.Prelude
import Web.View.Layout (defaultLayout)
-- Controller Imports
import Web.Controller.Tasks
import Web.Controller.Static
instance FrontController WebApplication where
controllers =
[ startPage WelcomeAction
-- Generator Marker
, parseRoute @TasksController
]
instance InitControllerContext WebApplication where
initContext = do
setLayout defaultLayout
initAutoRefresh