about summary refs log tree commit diff
path: root/src/API.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/API.hs')
-rw-r--r--src/API.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/API.hs b/src/API.hs
index 8bdb6bdfbb73..7b6ed9eae50f 100644
--- a/src/API.hs
+++ b/src/API.hs
@@ -58,7 +58,7 @@ type API =
       -- Miscellaneous
       :<|> "login"
            :> ReqBody '[JSON] T.AccountCredentials
-           :> Post '[JSON] (Headers '[Header "Set-Cookie" SetCookie] NoContent)
+           :> Post '[JSON] (Headers '[Header "Set-Cookie" SetCookie] T.Session)
       :<|> "logout"
            :> SessionCookie
            :> Get '[JSON] (Headers '[Header "Set-Cookie" SetCookie] NoContent)