Initial project setup

This commit is contained in:
Arne Weiss
2022-09-02 22:40:21 +02:00
commit ce35c0300c
41 changed files with 1127 additions and 0 deletions

21
Web/FrontController.hs Normal file
View 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