feature : Connect front to backend #1
@@ -100,7 +100,7 @@ router.get('/', async (req: Request, res: Response): Promise<void> => {
|
||||
prisma.bugReport.count({ where }),
|
||||
]);
|
||||
|
||||
res.json({ bugs: bugs.map(formatBug), total, page, pages: Math.ceil(total / limit) });
|
||||
res.json({ data: bugs.map(formatBug), total, page, pages: Math.ceil(total / limit) });
|
||||
});
|
||||
|
||||
// GET /api/bugs/:id
|
||||
|
||||
Reference in New Issue
Block a user