mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-12-28 22:59:38 +00:00
Add a way to see the backup location
This commit is contained in:
parent
9519f6418d
commit
bfa87a2131
5 changed files with 30 additions and 1 deletions
|
|
@ -10,6 +10,12 @@ class BackupController {
|
|||
})
|
||||
}
|
||||
|
||||
getBackupLocation(req, res) {
|
||||
res.json({
|
||||
backupLocation: this.backupManager.backupLocation
|
||||
})
|
||||
}
|
||||
|
||||
create(req, res) {
|
||||
this.backupManager.requestCreateBackup(res)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -26,6 +26,10 @@ class BackupManager {
|
|||
this.backups = []
|
||||
}
|
||||
|
||||
get backupLocation() {
|
||||
return this.BackupPath
|
||||
}
|
||||
|
||||
get backupSchedule() {
|
||||
return global.ServerSettings.backupSchedule
|
||||
}
|
||||
|
|
|
|||
|
|
@ -187,6 +187,7 @@ class ApiRouter {
|
|||
this.router.get('/backups/:id/download', BackupController.middleware.bind(this), BackupController.download.bind(this))
|
||||
this.router.get('/backups/:id/apply', BackupController.middleware.bind(this), BackupController.apply.bind(this))
|
||||
this.router.post('/backups/upload', BackupController.middleware.bind(this), BackupController.upload.bind(this))
|
||||
this.router.get('/backups/location', BackupController.middleware.bind(this), BackupController.getBackupLocation.bind(this))
|
||||
|
||||
//
|
||||
// File System Routes
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue