mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-09 20:54:42 +02:00
Update:API endpoint for syncing multiple local sessions. New API endpoint to get current user. Deprecate /me/sync-local-progress endpoint
This commit is contained in:
parent
debf0f495d
commit
f9e6655359
5 changed files with 107 additions and 46 deletions
|
@ -75,6 +75,11 @@ class SessionController {
|
|||
this.playbackSessionManager.syncLocalSessionRequest(req.user, req.body, res)
|
||||
}
|
||||
|
||||
// POST: api/session/local-all
|
||||
syncLocalSessions(req, res) {
|
||||
this.playbackSessionManager.syncLocalSessionsRequest(req, res)
|
||||
}
|
||||
|
||||
openSessionMiddleware(req, res, next) {
|
||||
var playbackSession = this.playbackSessionManager.getSession(req.params.id)
|
||||
if (!playbackSession) return res.sendStatus(404)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue