mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-15 22:01:37 +00:00
21 lines
457 B
JavaScript
21 lines
457 B
JavaScript
const express = require('express')
|
|
const Logger = require('../Logger')
|
|
|
|
class ClientRouter {
|
|
constructor(appRoot, routerBasePath = '') {
|
|
this.appRoot = appRoot
|
|
this.routerBasePath = routerBasePath
|
|
|
|
this.router = express()
|
|
this.router.disable('x-powered-by')
|
|
}
|
|
|
|
async start () {
|
|
Logger.info('[Client] Starting')
|
|
|
|
const { handler } = require('../../client')
|
|
this.router.use('/', handler)
|
|
}
|
|
}
|
|
|
|
module.exports = ClientRouter
|