Listing books

This commit is contained in:
2018-08-05 23:42:37 +03:00
parent f8f35007bf
commit 46c728c3c8
6 changed files with 90 additions and 4 deletions

View File

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