Add new api endpoint for direct playing audio files using session id #4259

This commit is contained in:
advplyr 2025-05-05 17:00:43 -05:00
parent 45987ffd63
commit 336de49d8d
5 changed files with 62 additions and 13 deletions

View file

@ -1,5 +1,6 @@
const express = require('express')
const ShareController = require('../controllers/ShareController')
const SessionController = require('../controllers/SessionController')
class PublicRouter {
constructor(playbackSessionManager) {
@ -17,6 +18,7 @@ class PublicRouter {
this.router.get('/share/:slug/cover', ShareController.getMediaItemShareCoverImage.bind(this))
this.router.get('/share/:slug/download', ShareController.downloadMediaItemShare.bind(this))
this.router.patch('/share/:slug/progress', ShareController.updateMediaItemShareProgress.bind(this))
this.router.get('/session/:id/track/:index', SessionController.getTrack.bind(this))
}
}
module.exports = PublicRouter