Merged v1.0.0 into feature-download-zip
This commit is contained in:
@@ -19,7 +19,7 @@ module.exports = class DB {
|
||||
for (sid of Object.keys(this.db)) {
|
||||
for (f of this.db[sid]) {
|
||||
// no removal of one-time downloads
|
||||
if(!Number.isInteger(f.metadata.retention)) return;
|
||||
if(!Number.isInteger(+f.metadata.retention)) return;
|
||||
|
||||
expires = (+f.metadata.createdAt) + (+f.metadata.retention * 1000) - Date.now();
|
||||
if(expires <= 0) {
|
||||
|
||||
@@ -34,6 +34,10 @@ if(config.accessLog) {
|
||||
app.use('/app', express.static(path.join(__dirname, '../public/app')));
|
||||
app.use('/assets', express.static(path.join(__dirname, '../public/assets')));
|
||||
|
||||
// robots.txt
|
||||
app.get('/robots.txt', (req, res) => {
|
||||
res.sendFile(path.join(__dirname, '../public/robots.txt'));
|
||||
});
|
||||
|
||||
// Upload App
|
||||
app.get('/', (req, res) => {
|
||||
|
||||
Reference in New Issue
Block a user