From 2e42d67196d7975cd965e94efafd455c2ae17b9c Mon Sep 17 00:00:00 2001 From: Thibault Pouch Date: Tue, 17 Mar 2026 16:43:27 +0100 Subject: [PATCH] refactor: update response structure for bugs endpoint to use 'data' key --- nest-backend/src/routes/bugs.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nest-backend/src/routes/bugs.ts b/nest-backend/src/routes/bugs.ts index b6f309e..174aea8 100644 --- a/nest-backend/src/routes/bugs.ts +++ b/nest-backend/src/routes/bugs.ts @@ -100,7 +100,7 @@ router.get('/', async (req: Request, res: Response): Promise => { 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