mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-16 14:21:41 +00:00
Chore: clean up unnecessary arguments
This commit is contained in:
parent
3c73322fc1
commit
433876f724
2 changed files with 2 additions and 3 deletions
|
|
@ -83,7 +83,7 @@ class Server {
|
||||||
this.apiRouter = new ApiRouter(this)
|
this.apiRouter = new ApiRouter(this)
|
||||||
this.hlsRouter = new HlsRouter(this.db, this.auth, this.playbackSessionManager)
|
this.hlsRouter = new HlsRouter(this.db, this.auth, this.playbackSessionManager)
|
||||||
this.staticRouter = new StaticRouter(this.db)
|
this.staticRouter = new StaticRouter(this.db)
|
||||||
this.clientRouter = new ClientRouter(global.appRoot, global.ClientPort, global.RouterBasePath)
|
this.clientRouter = new ClientRouter(global.appRoot, global.RouterBasePath)
|
||||||
|
|
||||||
Logger.logManager = this.logManager
|
Logger.logManager = this.logManager
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,9 +3,8 @@ const Path = require('path')
|
||||||
const Logger = require('../Logger')
|
const Logger = require('../Logger')
|
||||||
|
|
||||||
class ClientRouter {
|
class ClientRouter {
|
||||||
constructor(appRoot, clientPort = 3000, routerBasePath = '') {
|
constructor(appRoot, routerBasePath = '') {
|
||||||
this.appRoot = appRoot
|
this.appRoot = appRoot
|
||||||
this.clientPort = clientPort
|
|
||||||
this.routerBasePath = routerBasePath
|
this.routerBasePath = routerBasePath
|
||||||
|
|
||||||
this.client = null
|
this.client = null
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue