make auth a post request
This commit is contained in:
parent
520ab40070
commit
130e64cbd7
1 changed files with 1 additions and 1 deletions
|
@ -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] ()
|
||||||
|
|
Loading…
Reference in a new issue