formatted the routes/getNote.js code