mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-03-01 05:29:41 +00:00
Update model casing & associations
This commit is contained in:
parent
2131a65299
commit
54ca58e610
45 changed files with 830 additions and 561 deletions
15
server/routers/ApiRouter2.js
Normal file
15
server/routers/ApiRouter2.js
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue