audiobookshelf/server/routers/ClientRouter.js
2023-05-10 22:55:16 +02:00

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