mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-01-03 00:06:46 +01:00
16 lines
365 B
JavaScript
16 lines
365 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))
|
|
}
|
|
}
|
|
module.exports = PublicRouter
|