mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2025-01-05 19:40:09 +00:00
Yep, multi-domains is a thing
This commit is contained in:
parent
d6c7aff21b
commit
f55e9809b7
@ -56,15 +56,12 @@ uploadsController.upload = function(req, res, next){
|
|||||||
|
|
||||||
db.table('files').insert(files).then(() => {
|
db.table('files').insert(files).then(() => {
|
||||||
|
|
||||||
console.log('basedomain: ' + req.get('host'))
|
|
||||||
let basedomain = req.get('host')
|
let basedomain = req.get('host')
|
||||||
for(let domain of config.domains)
|
for(let domain of config.domains)
|
||||||
if(domain.host === req.get('host'))
|
if(domain.host === req.get('host'))
|
||||||
if(domain.hasOwnProperty('resolve'))
|
if(domain.hasOwnProperty('resolve'))
|
||||||
basedomain = domain.resolve
|
basedomain = domain.resolve
|
||||||
|
|
||||||
console.log('basedomain: ' + basedomain)
|
|
||||||
|
|
||||||
res.json({
|
res.json({
|
||||||
success: true,
|
success: true,
|
||||||
files: files.map(file => {
|
files: files.map(file => {
|
||||||
|
Loading…
Reference in New Issue
Block a user