if dynUpload is not /, redirect / to dynUpload.
This commit is contained in:
2949
app/package-lock.json
generated
2949
app/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -41,6 +41,15 @@ app.get('/robots.txt', (req, res) => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
// Upload App
|
// 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) => {
|
app.get(config.dynUpload, (req, res) => {
|
||||||
res.sendFile(path.join(__dirname, '../public/html/upload.html'));
|
res.sendFile(path.join(__dirname, '../public/html/upload.html'));
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user