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] ()