make download_url a post route

This commit is contained in:
Girish Ramakrishnan
2016-06-03 09:23:15 -07:00
parent 4df49a82e5
commit c1ded66c1a
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -3,7 +3,7 @@
exports = module.exports = {
get: get,
create: create,
download: download
createDownloadUrl: createDownloadUrl
};
var assert = require('assert'),
@@ -43,7 +43,7 @@ function create(req, res, next) {
});
}
function download(req, res, next) {
function createDownloadUrl(req, res, next) {
assert.strictEqual(typeof req.params.backupId, 'string');
backups.getRestoreUrl(req.params.backupId, function (error, result) {