FIRST COMMIT: configurable upload url
- aggiunta nel config.js della variabile dynUpload e modifica della url dell'app.
This commit is contained in:
@@ -36,7 +36,8 @@ const config = {
|
|||||||
"mailTemplate": 'mailto:?subject=File Transfer&body=You can download the files here: %%URL%%',
|
"mailTemplate": 'mailto:?subject=File Transfer&body=You can download the files here: %%URL%%',
|
||||||
// see https://github.com/expressjs/morgan
|
// see https://github.com/expressjs/morgan
|
||||||
// set to false to disable logging
|
// set to false to disable logging
|
||||||
"accessLog": ':date[iso] :method :url :status :response-time :remote-addr'
|
"accessLog": ':date[iso] :method :url :status :response-time :remote-addr',
|
||||||
|
"dynUpload": '/'
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ app.get('/robots.txt', (req, res) => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
// Upload App
|
// Upload App
|
||||||
app.get('/', (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