From f3d506c00570ea3f55dffba746c937ffe91e48f3 Mon Sep 17 00:00:00 2001 From: Kfir Dayan Date: Wed, 21 Jun 2023 14:54:32 +0300 Subject: [PATCH] done refactoring User controller + UserModel --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 48be17e..7bd22fd 100644 --- a/src/index.ts +++ b/src/index.ts @@ -42,7 +42,7 @@ app.use('/cart', cartRouter); app.all('*', (req, res, next) => { // res.status(404).json({ error: 'Route not found' }); - const error = new ApiError('Route not found'); + const error = new ApiError('Are you lost?'); error.statusCode = 404; error.status = 'fail'; next(error)