From 55c30e1948fd13ad71b0fb2115bf4a57f21854a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9D=B4=EC=A4=80=ED=9D=AC?= Date: Sun, 25 Feb 2024 00:40:22 +0900 Subject: [PATCH] =?UTF-8?q?FEAT=20:=20=EB=AC=B4=ED=95=9C=20=EC=8A=A4?= =?UTF-8?q?=ED=81=AC=EB=A1=A4=20=EA=B5=AC=ED=98=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/app.js b/backend/app.js index 0f8a43cd..c3d33226 100644 --- a/backend/app.js +++ b/backend/app.js @@ -40,7 +40,7 @@ app.get('/article', async (req, res) => { .limit(PAGE_SIZE) .toArray(); - res.json({ result: 'success', articles: articles }); + res.json({ result: 'success', article: articles }); } catch (error) { console.error('Error fetching articles:', error); res.status(500).json({ result: 'error', message: 'Internal server error' });