tasklite-core-0.5.0.0: CLI task / todo list manager with SQLite backend
Safe HaskellNone
LanguageGHC2021

Server

Synopsis

Documentation

type PlatformAPI = ("sql" :> (ReqBody '[JSON] SQLPost :> Post '[JSON] SqlQueryPostResult)) :<|> (("graphql" :> Get '[HTML] NoContent) :<|> (("graphql" :> (ReqBody '[JSON] GQLPost :> Post '[JSON] Object)) :<|> (("readonly" :> ("graphql" :> (ReqBody '[JSON] GQLPost :> Post '[JSON] Object))) :<|> (("playground" :> ("default-query" :> Get '[PlainText] Text)) :<|> (("schema" :> Get '[PlainText] Text) :<|> ("vacuum" :> Post '[JSON] Object)))))) Source #

startServer :: Config -> Config -> IO (Doc AnsiStyle) Source #

Uses AirGQL to provide a GraphQL endpoint at /graphql