mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-09 02:41:35 +00:00
first non-working draft
This commit is contained in:
parent
d21fe49ce2
commit
2ae4824f8a
7 changed files with 348 additions and 4 deletions
|
|
@ -1,6 +1,7 @@
|
|||
const express = require('express')
|
||||
const ShareController = require('../controllers/ShareController')
|
||||
const SessionController = require('../controllers/SessionController')
|
||||
const KOReaderController = require('../controllers/KOReaderController')
|
||||
|
||||
class PublicRouter {
|
||||
constructor(playbackSessionManager) {
|
||||
|
|
@ -19,6 +20,14 @@ class PublicRouter {
|
|||
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))
|
||||
|
||||
//
|
||||
// KOReader Routes
|
||||
//
|
||||
this.router.get('/users/auth', KOReaderController.authenticateUser.bind(this))
|
||||
this.router.post('/users/create', KOReaderController.createUser.bind(this))
|
||||
this.router.put('/syncs/progress', KOReaderController.updateProgress.bind(this))
|
||||
this.router.get('/syncs/progress/:documentHash', KOReaderController.getProgress.bind(this))
|
||||
}
|
||||
}
|
||||
module.exports = PublicRouter
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue