backend-0.1.0.0
Safe HaskellNone
LanguageHaskell2010

Server

Synopsis

Documentation

runServer :: IO () Source #

Runs the server

type DocumentedAPI = SwaggerAPI :<|> (PublicAPI :<|> ProtectedAPI) Source #

type PublicAPI = ("ping" :> Get '[JSON] String) :<|> (("document" :> Get '[PDF] PDFByteString) :<|> (AuthAPI :<|> (PasswordResetAPI :<|> DumpAPI))) Source #

jwtSettings :: JWK -> JWTSettings Source #

The JWT settings used for the app

cookieSettings :: CookieSettings Source #

The cookie settings used for the app

app :: CookieSettings -> JWTSettings -> Application Source #

Used to construct the app with the given cookie and JWT settings.

server :: CookieSettings -> JWTSettings -> Server DocumentedAPI Source #