Skip to content

Commit

Permalink
Fixed the Response Type
Browse files Browse the repository at this point in the history
  • Loading branch information
nishant-jain-94 committed Mar 9, 2018
1 parent c07952c commit 288d7b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/notes/notes.router.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ router.get('/:noteId', async (req, res) => {
router.post('/', async (req, res) => {
const note = req.body;
const createdNote = await notesController.createNote(note);
res.json(JSON.stringify(createdNote));
res.json(createdNote);
});

module.exports = router;

0 comments on commit 288d7b9

Please sign in to comment.