Channels API

This commit is contained in:
2018-08-05 23:13:49 +03:00
parent a4129ae5cf
commit f8f35007bf
10 changed files with 113 additions and 9 deletions

View File

@ -19,14 +19,18 @@ import Types
import View
import qualified API.Users as Users
import qualified API.Channels as Channels
data Index = Index
type API = Get '[HTML] (AppView Index)
:<|> Users.API
:<|> Channels.API
handler :: ServerT API AppM
handler = indexHandler :<|> Users.handler
handler = indexHandler
:<|> Users.handler
:<|> Channels.handler
instance ToHtml Index where
toHtml _ = do