make auth a post request

This commit is contained in:
nek0 2019-09-06 21:42:08 +02:00
parent 520ab40070
commit 130e64cbd7
1 changed files with 1 additions and 1 deletions

View File

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