diff options
author | metamuffin <metamuffin@yandex.com> | 2022-01-23 16:34:57 +0100 |
---|---|---|
committer | metamuffin <metamuffin@yandex.com> | 2022-01-23 16:34:57 +0100 |
commit | 37fdcd78ba9b6bfc4db1369485129e160bb5f67a (patch) | |
tree | c976269a40ab32f00433320ad2cd909ac92e0d67 /source/server | |
parent | be747eff67244a01cc6faab3bfb1b8731d146335 (diff) | |
download | keks-meet-37fdcd78ba9b6bfc4db1369485129e160bb5f67a.tar keks-meet-37fdcd78ba9b6bfc4db1369485129e160bb5f67a.tar.bz2 keks-meet-37fdcd78ba9b6bfc4db1369485129e160bb5f67a.tar.zst |
refactor part 2
Diffstat (limited to 'source/server')
-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 => { |