summaryrefslogtreecommitdiff
path: root/lib/web/baseRouter.js
diff options
context:
space:
mode:
authorDavid Mehren2019-10-27 13:51:53 +0100
committerDavid Mehren2019-10-27 13:51:53 +0100
commitf78540c3fbf109d6ccf2d92c5b1cf0148c88f722 (patch)
tree7f8b968b925b8b262cca0f4cd180027abc4b745e /lib/web/baseRouter.js
parent20a67e3446723231961043bffeb5a7b974e891c0 (diff)
Move note actions to their own file.
Because of circular import problems, this commit also moves the error messages from response.js to errors.js Signed-off-by: David Mehren <dmehren1@gmail.com>
Diffstat (limited to 'lib/web/baseRouter.js')
-rw-r--r--lib/web/baseRouter.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/web/baseRouter.js b/lib/web/baseRouter.js
index b918ce75..df5e2777 100644
--- a/lib/web/baseRouter.js
+++ b/lib/web/baseRouter.js
@@ -6,17 +6,19 @@ const response = require('../response')
const baseRouter = module.exports = Router()
+const errors = require('../errors')
+
// get index
baseRouter.get('/', response.showIndex)
// get 403 forbidden
baseRouter.get('/403', function (req, res) {
- response.errorForbidden(res)
+ errors.errorForbidden(res)
})
// get 404 not found
baseRouter.get('/404', function (req, res) {
- response.errorNotFound(res)
+ errors.errorNotFound(res)
})
// get 500 internal error
baseRouter.get('/500', function (req, res) {
- response.errorInternalError(res)
+ errors.errorInternalError(res)
})