add route to download backup

This commit is contained in:
Girish Ramakrishnan
2016-03-08 16:28:42 -08:00
parent a10ed73af2
commit 8014e2eaf8
2 changed files with 14 additions and 1 deletions
+1
View File
@@ -179,6 +179,7 @@ function initializeExpressSync() {
// backup routes
router.get ('/api/v1/backups', settingsScope, routes.backups.get);
router.post('/api/v1/backups', settingsScope, routes.backups.create);
router.get ('/api/v1/backups/:backupId', appsScope, routes.user.requireAdmin, routes.backups.download);
// disable server timeout. we use the timeout middleware to handle timeouts on a route level
httpServer.setTimeout(0);