From aacb2f4287d33e9c91fc6f4ac4f3404acc34c841 Mon Sep 17 00:00:00 2001 From: Maximilian Baum Date: Thu, 2 Apr 2026 11:38:37 +0200 Subject: [PATCH] bugfix --- src/routes/api/add.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/api/add.js b/src/routes/api/add.js index c3700dd..f606162 100644 --- a/src/routes/api/add.js +++ b/src/routes/api/add.js @@ -8,7 +8,7 @@ router.post('/', (req, res) => { }); router.get('/:a/:b', (req, res) => { - res.json({ ret: req.params.a + req.params.b }); + res.json({ ret: Number(req.params.a) + Number(req.params.b) }); }); module.exports = router; \ No newline at end of file