From f55e9809b74ce522ff7e2e5fd59effa02447acb5 Mon Sep 17 00:00:00 2001 From: Pitu Date: Wed, 18 Jan 2017 21:52:24 -0300 Subject: [PATCH] Yep, multi-domains is a thing --- controllers/uploadController.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/controllers/uploadController.js b/controllers/uploadController.js index 47eb54d..4585087 100644 --- a/controllers/uploadController.js +++ b/controllers/uploadController.js @@ -56,15 +56,12 @@ uploadsController.upload = function(req, res, next){ db.table('files').insert(files).then(() => { - console.log('basedomain: ' + req.get('host')) let basedomain = req.get('host') for(let domain of config.domains) if(domain.host === req.get('host')) if(domain.hasOwnProperty('resolve')) basedomain = domain.resolve - console.log('basedomain: ' + basedomain) - res.json({ success: true, files: files.map(file => {