| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Server
Synopsis
- runServer :: IO ()
- type DocumentedAPI = SwaggerAPI :<|> (PublicAPI :<|> ProtectedAPI)
- type PublicAPI = ("ping" :> Get '[JSON] String) :<|> (("document" :> Get '[PDF] PDFByteString) :<|> (AuthAPI :<|> (PasswordResetAPI :<|> DumpAPI)))
- jwtSettings :: JWK -> JWTSettings
- cookieSettings :: CookieSettings
- app :: CookieSettings -> JWTSettings -> Application
- server :: CookieSettings -> JWTSettings -> Server DocumentedAPI
Documentation
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 #