about summary refs log tree commit diff
path: root/src/API.hs
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2020-07-29T19·26+0100
committerWilliam Carroll <wpcarro@gmail.com>2020-07-29T19·26+0100
commitfdd51f626c46780c22edf7841fe95a3bdaff699b (patch)
treea4f79f51148904c36c7d54a8a435d5f711d810fe /src/API.hs
parentab12be784068c19f3e8dd00494b83a510c602e9c (diff)
Fully support login, logout
Refactor my handlers to use the `Handler a` type instead of `IO a`; this allows
me to throwError inside of handlers that Servant properly handles. Previously I
was creating 500 errors unnecessarily.
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 50263bb3e69c..01f7b7b750ce 100644
--- a/src/API.hs
+++ b/src/API.hs
@@ -11,7 +11,7 @@ import qualified Types as T
 --------------------------------------------------------------------------------
 
 -- | Once authenticated, users receive a SessionCookie.
-type SessionCookie = Header' '[Required] "Set-Cookie" T.SessionCookie
+type SessionCookie = Header' '[Required] "Cookie" T.SessionCookie
 
 type API =
       -- accounts: Create