mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-11-27 10:52:47 +01:00
Update:New EBook API endpoint
This commit is contained in:
1 parent
b3f19ef628
commit
4f75a89633
11 files changed
+72
-40
No files matched your search
@@ -165,6 +165,7 @@ class Server {
|
||||
router.use('/s', this.authMiddleware.bind(this), this.staticRouter.router)
|
||||
|
||||
// EBook static file routes
|
||||
// TODO: Deprecated as of 2.2.21 edge
|
||||
router.get('/ebook/:library/:folder/*', (req, res) => {
|
||||
const library = this.db.libraries.find(lib => lib.id === req.params.library)
|
||||
if (!library) return res.sendStatus(404)
|
||||
|
||||
Reference in new issue
Block a user