mirror of
https://github.com/fosrl/pangolin.git
synced 2025-07-28 22:55:07 +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
|
@ -32,7 +32,7 @@ export async function createTarget(req: Request, res: Response, next: NextFuncti
|
|||
const newTarget = await db.insert(targets).values(targetData).returning();
|
||||
|
||||
return res.status(HttpCode.CREATED).send(
|
||||
response({
|
||||
response(res, {
|
||||
data: newTarget[0],
|
||||
success: true,
|
||||
error: false,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue