Something resembling of a front page

This commit is contained in:
2018-08-02 22:11:11 +03:00
parent 0579b6d3e1
commit 1e088afce4
5 changed files with 77 additions and 1 deletions

27
src/Server.hs Normal file
View File

@ -0,0 +1,27 @@
{-# Language DataKinds #-}
{-# Language TypeFamilies #-}
{-# Language TypeOperators #-}
{-# Language NoImplicitPrelude #-}
{-# Language MultiParamTypeClasses #-}
{-# Language OverloadedStrings #-}
{-# Language TemplateHaskell #-}
{-# Language QuasiQuotes #-}
{-# Language RecordWildCards #-}
{-# Language DeriveGeneric #-}
{-# Language FlexibleInstances #-}
module Server where
import qualified API as API
import Servant
type API = API.API :<|> "static" :> Raw
handler :: ServerT API Handler
handler = API.handler :<|> serveDirectoryFileServer "static"
server :: Application
server = serve api handler
where
api :: Proxy API
api = Proxy