if dynUpload is not /, redirect / to dynUpload.

This commit is contained in:
root
2018-12-06 14:17:42 +01:00
parent cc6d118193
commit 069ae356b4
2 changed files with 1511 additions and 1447 deletions

2949
app/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -41,6 +41,15 @@ app.get('/robots.txt', (req, res) => {
});
// Upload App
//
//
app.get('/', (req, res) => {
if (config.dynUpload != '/')
res.status(304).redirect(config.dynUpload);
else
res.sendFile(path.join(__dirname, '../public/html/upload.html'));
});
app.get(config.dynUpload, (req, res) => {
res.sendFile(path.join(__dirname, '../public/html/upload.html'));
});