We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f74c1ee commit dbeb0adCopy full SHA for dbeb0ad
handlers/download/index.js
@@ -5,6 +5,6 @@ exports.ExpiringDownloadLink = require('./models/expiringDownloadLink');
5
var mountHandlerMiddleware = require('lib/mountHandlerMiddleware');
6
7
exports.init = function(app) {
8
- app.use(mountHandlerMiddleware('/download/now/', __dirname));
+ app.use(mountHandlerMiddleware('/download', __dirname));
9
};
10
handlers/download/models/expiringDownloadLink.js
@@ -29,7 +29,7 @@ var schema = new Schema({
29
});
30
31
schema.methods.getUrl = function() {
32
- return config.server.siteHost + '/download/now/' + this.linkId;
+ return config.server.siteHost + '/download/' + this.linkId;
33
34
35
module.exports = mongoose.model('ExpiringDownloadLink', schema);
0 commit comments