diff --git a/dashboard/src/components/BackupScheduleDialog.vue b/dashboard/src/components/BackupScheduleDialog.vue index 31a4891ea..16a1d0445 100644 --- a/dashboard/src/components/BackupScheduleDialog.vue +++ b/dashboard/src/components/BackupScheduleDialog.vue @@ -33,11 +33,6 @@ const cronDays = [ // generates 24h time sets (instead of american 12h) to avoid having to translate everything to locales eg. 12:00 const cronHours = Array.from({ length: 24 }).map(function (v, i) { return { id: i, name: (i < 10 ? '0' : '') + i + ':00' }; }); -const policy = ref({ - schedule: '', - retention: '' -}); - const id = ref(''); const busy = ref(false); const formError = ref(''); diff --git a/src/server.js b/src/server.js index 840ead1e3..d65e458c2 100644 --- a/src/server.js +++ b/src/server.js @@ -151,7 +151,7 @@ async function initializeExpressSync() { router.get ('/api/v1/notifications/:notificationId', token, authorizeAdmin, routes.notifications.load, routes.notifications.get); router.post('/api/v1/notifications/:notificationId', json, token, authorizeAdmin, routes.notifications.load, routes.notifications.update); -// backup routes + // backup routes router.get ('/api/v1/backups', token, authorizeAdmin, routes.backups.list); router.get ('/api/v1/backups/:id', token, authorizeAdmin, routes.backups.load, routes.backups.get); router.post('/api/v1/backups/:id', json, token, authorizeAdmin, routes.backups.load, routes.backups.update);