mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-14 01:08:22 +02:00
Add:Api route to sync stream data for use in android native
This commit is contained in:
@ -172,6 +172,8 @@ class ApiController {
|
||||
this.router.post('/syncUserAudiobookData', this.syncUserAudiobookData.bind(this))
|
||||
|
||||
this.router.post('/purgecache', this.purgeCache.bind(this))
|
||||
|
||||
this.router.post('/syncStream', this.syncStream.bind(this))
|
||||
}
|
||||
|
||||
async findBooks(req, res) {
|
||||
@ -405,6 +407,11 @@ class ApiController {
|
||||
res.json(allUserAudiobookData)
|
||||
}
|
||||
|
||||
async syncStream(req, res) {
|
||||
Logger.debug(`[ApiController] syncStream for ${req.user.username} - ${req.body.streamId}`)
|
||||
this.streamManager.streamSyncFromApi(req, res)
|
||||
}
|
||||
|
||||
//
|
||||
// Helper Methods
|
||||
//
|
||||
|
Reference in New Issue
Block a user