diff --git a/src/http-api.ts b/src/http-api.ts index a00aeb6..ce4a291 100644 --- a/src/http-api.ts +++ b/src/http-api.ts @@ -93,13 +93,9 @@ export class HttpApi { }); // Serve index - { - const html = this.mdFiles.generateIndex(); - - this.router.get('/html', (_req: express.Request, res: express.Response) => { - res.setHeader('content-type', 'text/html').send(this.mdFiles.indexHtml); - }); - } + this.router.get('/html', (_req: express.Request, res: express.Response) => { + res.setHeader('content-type', 'text/html').send(this.mdFiles.indexHtml); + }); // ------------------- server ---------------------