mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-12-10 13:59:40 +00:00
Add:Create media item shares with expiration #1768
This commit is contained in:
parent
e52b695f7e
commit
d6eae9b43e
12 changed files with 801 additions and 104 deletions
15
server/routers/PublicRouter.js
Normal file
15
server/routers/PublicRouter.js
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue