summaryrefslogtreecommitdiff
path: root/lib/web/imageRouter
diff options
context:
space:
mode:
authorSheogorath2019-11-20 20:07:35 +0100
committerGitHub2019-11-20 20:07:35 +0100
commit689f5a0a9583fdd774a271a9e6265ee5356d72a0 (patch)
tree754bed08f4724a4bc4f91743f6dfe12f92857c01 /lib/web/imageRouter
parentf894d3c2fa29865288a31cd80cd2a772ce44b330 (diff)
parentb5ccceff59002034fbb089935076f40b8aa16e58 (diff)
Merge pull request #213 from davidmehren/refactor_backend_notes
First steps in refactoring the backend code
Diffstat (limited to '')
-rw-r--r--lib/web/imageRouter/index.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/web/imageRouter/index.js b/lib/web/imageRouter/index.js
index 0b59218b..aa02e9b0 100644
--- a/lib/web/imageRouter/index.js
+++ b/lib/web/imageRouter/index.js
@@ -5,7 +5,7 @@ const formidable = require('formidable')
const config = require('../../config')
const logger = require('../../logger')
-const response = require('../../response')
+const errors = require('../../errors')
const imageRouter = module.exports = Router()
@@ -22,7 +22,7 @@ imageRouter.post('/uploadimage', function (req, res) {
form.parse(req, function (err, fields, files) {
if (err || !files.image || !files.image.path) {
logger.error(`formidable error: ${err}`)
- response.errorForbidden(res)
+ errors.errorForbidden(res)
} else {
logger.debug(`SERVER received uploadimage: ${JSON.stringify(files.image)}`)