(
private readonly router: express.Router,
config: HandlerConfig,
)
| 46 | apiHandler: ApiHandler | undefined; |
| 47 | |
| 48 | constructor( |
| 49 | private readonly router: express.Router, |
| 50 | config: HandlerConfig, |
| 51 | ) { |
| 52 | this.renderGoldenLayout = config.renderGoldenLayout; |
| 53 | |
| 54 | this.storageHandler = config.storageHandler; |
| 55 | |
| 56 | // if for testing purposes |
| 57 | if (config.compileHandler) { |
| 58 | this.apiHandler = new ApiHandler( |
| 59 | config.compileHandler, |
| 60 | config.ceProps, |
| 61 | config.storageHandler, |
| 62 | config.clientOptionsHandler.options.urlShortenService, |
| 63 | config.compilationEnvironment, |
| 64 | ); |
| 65 | |
| 66 | this.apiHandler.setReleaseInfo(config.defArgs.gitReleaseName, config.defArgs.releaseBuildNumber); |
| 67 | } else { |
| 68 | this.apiHandler = undefined; |
| 69 | } |
| 70 | } |
| 71 | |
| 72 | initializeRoutes() { |
| 73 | if (this.apiHandler) { |
nothing calls this directly
no test coverage detected