diff options
author | William Carroll <wpcarro@gmail.com> | 2020-07-24T22·35+0100 |
---|---|---|
committer | William Carroll <wpcarro@gmail.com> | 2020-07-24T22·35+0100 |
commit | 718152ec14242a83fa63c5272c7527dbbd928ee2 (patch) | |
tree | 8a0dfdddfcba4678bb5055ae932e43f3317cc750 /src/API.hs | |
parent | 1d47e94bbe26479ffaaafecd27cdb83d072bfe01 (diff) |
Return a Session
Define the Session type and return it for the POST /user endpoint
Diffstat (limited to 'src/API.hs')
-rw-r--r-- | src/API.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/API.hs b/src/API.hs index b46ae5b3560f..98ffd6094631 100644 --- a/src/API.hs +++ b/src/API.hs @@ -16,7 +16,7 @@ import qualified Types as T type API = "user" :> ReqBody '[JSON] T.User - :> Post '[JSON] (Maybe (Key T.User)) + :> Post '[JSON] (Maybe T.Session) :<|> "user" :> Capture "name" Text :> Get '[JSON] (Maybe T.User) |