Some syntax changes
This commit is contained in:
@@ -13,7 +13,7 @@ const db = new NotesService()
|
||||
* @param res
|
||||
* @returns {Promise<void>}
|
||||
*/
|
||||
export const getAllNotes = async (req, res) => {
|
||||
export const notesIndex = async (req, res) => {
|
||||
try{
|
||||
const data = await db.getNotes
|
||||
res.status(data.code || 200).json(data)
|
||||
|
||||
Reference in New Issue
Block a user