diff --git a/index.js b/index.js index 6b24070..ac0d1b9 100644 --- a/index.js +++ b/index.js @@ -132,7 +132,7 @@ router.get('/data.json', (req, res) => { router.post('/new_note_spa', (req, res) => { if (!isValidNote(req.body)) { - return res.send('invalid note').status(400) + return res.status(400).send('invalid note') } createNote(formatNote(req.body))