From 37fdcd78ba9b6bfc4db1369485129e160bb5f67a Mon Sep 17 00:00:00 2001 From: metamuffin Date: Sun, 23 Jan 2022 16:34:57 +0100 Subject: refactor part 2 --- source/server/index.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/server/index.ts') diff --git a/source/server/index.ts b/source/server/index.ts index 1ee6bc9..75114ea 100644 --- a/source/server/index.ts +++ b/source/server/index.ts @@ -10,6 +10,8 @@ let bundleFiles: Record = {} root.get("/", async c => { await c.send({ path: "index.html", root: `${Deno.cwd()}/public` }) }) root.get("/room/:id", async c => { await c.send({ path: "index.html", root: `${Deno.cwd()}/public` }) }) +root.get("/favicon.ico", c => { c.response.status = 204 }) + // deno-lint-ignore no-explicit-any function respondWithType(mimeType: string, f: () => string): (c: RouterContext) => void { return c => { -- cgit v1.2.3-70-g09d2