mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-06-08 03:32:43 +02:00
Add:Create media item shares with expiration #1768
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user