From f78540c3fbf109d6ccf2d92c5b1cf0148c88f722 Mon Sep 17 00:00:00 2001 From: David Mehren Date: Sun, 27 Oct 2019 13:51:53 +0100 Subject: 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 --- app.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'app.js') diff --git a/app.js b/app.js index 10b7bd97..930191ce 100644 --- a/app.js +++ b/app.js @@ -22,7 +22,7 @@ var flash = require('connect-flash') // core var config = require('./lib/config') var logger = require('./lib/logger') -var response = require('./lib/response') +var errors = require('./lib/errors') var models = require('./lib/models') var csp = require('./lib/csp') @@ -212,11 +212,11 @@ app.use(require('./lib/web/auth')) app.use(require('./lib/web/historyRouter')) app.use(require('./lib/web/userRouter')) app.use(require('./lib/web/imageRouter')) -app.use(require('./lib/web/noteRouter')) +app.use(require('./lib/web/note/router')) // response not found if no any route matxches app.get('*', function (req, res) { - response.errorNotFound(res) + errors.errorNotFound(res) }) // socket.io secure -- cgit v1.2.3