mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2024-12-20 19:06:06 +01:00
17 lines
464 B
JavaScript
17 lines
464 B
JavaScript
const express = require('express')
|
|
const ShareController = require('../controllers/ShareController')
|
|
|
|
class PublicRouter {
|
|
constructor() {
|
|
this.router = express()
|
|
this.router.disable('x-powered-by')
|
|
this.init()
|
|
}
|
|
|
|
init() {
|
|
this.router.get('/share/:slug', ShareController.getMediaItemShareBySlug.bind(this))
|
|
this.router.get('/share/:slug/file/:fileid', ShareController.getMediaItemShareFile.bind(this))
|
|
}
|
|
}
|
|
module.exports = PublicRouter
|