Some syntax changes

This commit is contained in:
2021-10-15 02:19:06 +03:00
parent 625c55a083
commit 1912baeeab
2 changed files with 3 additions and 3 deletions

View File

@@ -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)