audiobookshelf/server/routers/ApiRouter2.js

16 lines
364 B
JavaScript
Raw Normal View History

2023-03-19 21:19:22 +01:00
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