diff options
author | David Mehren | 2019-10-27 13:51:53 +0100 |
---|---|---|
committer | David Mehren | 2019-10-27 13:51:53 +0100 |
commit | f78540c3fbf109d6ccf2d92c5b1cf0148c88f722 (patch) | |
tree | 7f8b968b925b8b262cca0f4cd180027abc4b745e /app.js | |
parent | 20a67e3446723231961043bffeb5a7b974e891c0 (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 'app.js')
-rw-r--r-- | app.js | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |