Skip to content

Commit dbeb0ad

Browse files
committed
rollback download change
1 parent f74c1ee commit dbeb0ad

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

handlers/download/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ exports.ExpiringDownloadLink = require('./models/expiringDownloadLink');
55
var mountHandlerMiddleware = require('lib/mountHandlerMiddleware');
66

77
exports.init = function(app) {
8-
app.use(mountHandlerMiddleware('/download/now/', __dirname));
8+
app.use(mountHandlerMiddleware('/download', __dirname));
99
};
1010

handlers/download/models/expiringDownloadLink.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ var schema = new Schema({
2929
});
3030

3131
schema.methods.getUrl = function() {
32-
return config.server.siteHost + '/download/now/' + this.linkId;
32+
return config.server.siteHost + '/download/' + this.linkId;
3333
};
3434

3535
module.exports = mongoose.model('ExpiringDownloadLink', schema);

0 commit comments

Comments
 (0)