mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-01-26 00:14:49 +01:00
16 lines
364 B
JavaScript
16 lines
364 B
JavaScript
const express = require('express')
|
|
const LibraryItemController = require('../controllers2/LibraryItemController')
|
|
|
|
class ApiRouter2 {
|
|
constructor(Server) {
|
|
this.router = express()
|
|
this.router.disable('x-powered-by')
|
|
this.init()
|
|
}
|
|
|
|
init() {
|
|
this.router.get('/items/:id', LibraryItemController.get.bind(this))
|
|
}
|
|
}
|
|
module.exports = ApiRouter2
|