Add backup download route if backend supports it

This commit is contained in:
Johannes Zellner
2016-09-16 18:14:36 +02:00
parent c9c1964e09
commit 6352064e6c
7 changed files with 74 additions and 2 deletions
+1
View File
@@ -204,6 +204,7 @@ function initializeExpressSync() {
router.get ('/api/v1/backups', settingsScope, routes.user.requireAdmin, routes.backups.get);
router.post('/api/v1/backups', settingsScope, routes.user.requireAdmin, routes.backups.create);
router.post('/api/v1/backups/:backupId/download_url', appsScope, routes.user.requireAdmin, routes.backups.createDownloadUrl);
router.post('/api/v1/backups/:backupId/download', appsScope, routes.user.requireAdmin, routes.backups.download);
// disable server socket "idle" timeout. we use the timeout middleware to handle timeouts on a route level
// we rely on nginx for timeouts on the TCP level (see client_header_timeout)