remove auth from userlist
This commit is contained in:
parent
12b8bf393c
commit
a01138e6e4
2 changed files with 3 additions and 4 deletions
|
@ -28,8 +28,7 @@ type MateAPI =
|
||||||
:> Capture "uid'" Int :> Get '[JSON] UserDetails
|
:> Capture "uid'" Int :> Get '[JSON] UserDetails
|
||||||
:<|> "user" :> AuthProtect "header-auth"
|
:<|> "user" :> AuthProtect "header-auth"
|
||||||
:> Capture "uid'" Int :> ReqBody '[JSON] UserDetailsSubmit :> Patch '[JSON] ()
|
:> Capture "uid'" Int :> ReqBody '[JSON] UserDetailsSubmit :> Patch '[JSON] ()
|
||||||
:<|> "user" :> "list" :> AuthProtect "header-auth"
|
:<|> "user" :> "list" :> QueryParam "refine" UserRefine :> Get '[JSON] [UserSummary]
|
||||||
:> QueryParam "refine" Refine :> Get '[JSON] [User]
|
|
||||||
:<|> "user" :> "recharge" :> AuthProtect "header-auth"
|
:<|> "user" :> "recharge" :> AuthProtect "header-auth"
|
||||||
:> ReqBody '[JSON] UserRecharge :> Post '[JSON] ()
|
:> ReqBody '[JSON] UserRecharge :> Post '[JSON] ()
|
||||||
:<|> "user" :> "transfer" :> AuthProtect "header-auth"
|
:<|> "user" :> "transfer" :> AuthProtect "header-auth"
|
||||||
|
|
|
@ -58,8 +58,8 @@ userUpdate (Just aid) uid uds =
|
||||||
{ errBody = "Wrong Authentication present."
|
{ errBody = "Wrong Authentication present."
|
||||||
}
|
}
|
||||||
|
|
||||||
userList :: Maybe Int -> Maybe Refine -> MateHandler [User]
|
userList :: Maybe UserRefine -> MateHandler [UserSummary]
|
||||||
userList _ ref = do
|
userList ref = do
|
||||||
conn <- rsConnection <$> ask
|
conn <- rsConnection <$> ask
|
||||||
userSelect ref conn
|
userSelect ref conn
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue