audiobookshelf/server/routers/ApiRouter2.js
2023-03-19 15:19:22 -05:00

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