diff options
| author | Pitu <[email protected]> | 2017-01-18 21:52:24 -0300 |
|---|---|---|
| committer | Pitu <[email protected]> | 2017-01-18 21:52:24 -0300 |
| commit | f55e9809b74ce522ff7e2e5fd59effa02447acb5 (patch) | |
| tree | 1ce8615d906ebcb98c84cd44a5bf595425708454 /controllers/uploadController.js | |
| parent | Multi-domain fixes. Maybe it's ready? (diff) | |
| download | host.fuwn.me-f55e9809b74ce522ff7e2e5fd59effa02447acb5.tar.xz host.fuwn.me-f55e9809b74ce522ff7e2e5fd59effa02447acb5.zip | |
Yep, multi-domains is a thing
Diffstat (limited to 'controllers/uploadController.js')
| -rw-r--r-- | controllers/uploadController.js | 3 |
1 files changed, 0 insertions, 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 => { |