From 9ec95ca8d84099fb6343578859d78c18530a9b84 Mon Sep 17 00:00:00 2001 From: Ladd Date: Thu, 26 Dec 2024 19:03:50 -0600 Subject: [PATCH] removing vestigal scope --- src/http-api.ts | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) 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 ---------------------