diff options
Diffstat (limited to 'source/server/index.ts')
-rw-r--r-- | source/server/index.ts | 2 |
1 files changed, 2 insertions, 0 deletions
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<string, string> = {} 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<any, any, any>) => void { return c => { |