mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-06-27 11:19:30 +02:00
Remove API routes for removing all items and purging media progress
This commit is contained in:
parent
f73a0cce72
commit
f4497acd48
16 changed files with 1 additions and 74 deletions
|
@ -441,20 +441,6 @@ class LibraryItemController {
|
|||
}
|
||||
}
|
||||
|
||||
// DELETE: api/items/all
|
||||
// TODO: Remove
|
||||
async deleteAll(req, res) {
|
||||
return res.sendStatus(404)
|
||||
// if (!req.user.isAdminOrUp) {
|
||||
// Logger.warn('User other than admin attempted to delete all library items', req.user)
|
||||
// return res.sendStatus(403)
|
||||
// }
|
||||
// Logger.info('Removing all Library Items')
|
||||
// var success = await this.db.recreateLibraryItemsDb()
|
||||
// if (success) res.sendStatus(200)
|
||||
// else res.sendStatus(500)
|
||||
}
|
||||
|
||||
// POST: api/items/:id/scan (admin)
|
||||
async scan(req, res) {
|
||||
if (!req.user.isAdminOrUp) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue