make auth a post request

This commit is contained in:
nek0 2019-09-06 21:42:08 +02:00
parent 520ab40070
commit 130e64cbd7

View file

@ -22,7 +22,7 @@ import Model as M
import Types import Types
type UserAPI = 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" :> ReqBody '[JSON] AuthRequest :> Post '[JSON] AuthResult
:<|> "auth" :> AuthProtect "header-auth" :> ReqBody '[JSON] Int :<|> "auth" :> AuthProtect "header-auth" :> ReqBody '[JSON] Int
:> Delete '[JSON] () :> Delete '[JSON] ()