From 130e64cbd7cd53967cbe66ca768d6352b9139dca Mon Sep 17 00:00:00 2001 From: nek0 Date: Fri, 6 Sep 2019 21:42:08 +0200 Subject: [PATCH] make auth a post request --- src/API.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/API.hs b/src/API.hs index 33f2584..a5e0ebc 100644 --- a/src/API.hs +++ b/src/API.hs @@ -22,7 +22,7 @@ import Model as M import Types type UserAPI = - "auth" :> Capture "uid" Int :> Get '[JSON] AuthInfo + "auth" :> "get" :> ReqBody '[JSON] Int :> Post '[JSON] AuthInfo :<|> "auth" :> ReqBody '[JSON] AuthRequest :> Post '[JSON] AuthResult :<|> "auth" :> AuthProtect "header-auth" :> ReqBody '[JSON] Int :> Delete '[JSON] ()