Initial project setup
This commit is contained in:
21
Web/Types.hs
Normal file
21
Web/Types.hs
Normal file
@@ -0,0 +1,21 @@
|
||||
module Web.Types where
|
||||
|
||||
import IHP.Prelude
|
||||
import IHP.ModelSupport
|
||||
import Generated.Types
|
||||
|
||||
data WebApplication = WebApplication deriving (Eq, Show)
|
||||
|
||||
|
||||
data StaticController = WelcomeAction deriving (Eq, Show, Data)
|
||||
|
||||
data EntriesController
|
||||
= TodayAction
|
||||
| EntriesAction
|
||||
| NewEntryAction
|
||||
| ShowEntryAction { entryId :: !(Id Entry) }
|
||||
| CreateEntryAction
|
||||
| EditEntryAction { entryId :: !(Id Entry) }
|
||||
| UpdateEntryAction { entryId :: !(Id Entry) }
|
||||
| DeleteEntryAction { entryId :: !(Id Entry) }
|
||||
deriving (Eq, Show, Data)
|
||||
Reference in New Issue
Block a user