mirror of
https://github.com/fosrl/pangolin.git
synced 2025-07-31 08:04:54 +02:00
Fix return response and add list
This commit is contained in:
parent
e85c94d21d
commit
ecdf2dfd04
22 changed files with 354 additions and 17 deletions
|
@ -43,7 +43,7 @@ export async function getUser(req: Request, res: Response, next: NextFunction):
|
|||
const { passwordHash: _, ...userWithoutPassword } = user[0];
|
||||
|
||||
return res.status(HttpCode.OK).send(
|
||||
response({
|
||||
response(res, {
|
||||
data: userWithoutPassword,
|
||||
success: true,
|
||||
error: false,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue