diff options
author | metamuffin <metamuffin@yandex.com> | 2022-01-25 20:58:57 +0100 |
---|---|---|
committer | metamuffin <metamuffin@yandex.com> | 2022-01-25 20:58:57 +0100 |
commit | 8cc5a50b91a3d80b28b03191b246974d3aca9bf8 (patch) | |
tree | c737af828efe2e1750b5fadc140237737026081d /source/server/index.ts | |
parent | a22bdc3821bd53d8e3b198423db3f8d7e8e579f6 (diff) | |
download | keks-meet-8cc5a50b91a3d80b28b03191b246974d3aca9bf8.tar keks-meet-8cc5a50b91a3d80b28b03191b246974d3aca9bf8.tar.bz2 keks-meet-8cc5a50b91a3d80b28b03191b246974d3aca9bf8.tar.zst |
polish + menu
Diffstat (limited to 'source/server/index.ts')
-rw-r--r-- | source/server/index.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/server/index.ts b/source/server/index.ts index 75114ea..3fc32ce 100644 --- a/source/server/index.ts +++ b/source/server/index.ts @@ -10,6 +10,11 @@ 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("/licen(c|s)e", async c => { + c.response.body = await Deno.readTextFile("LICENCE") + c.response.headers.set("Content-Type", "text/plain") +}) + root.get("/favicon.ico", c => { c.response.status = 204 }) // deno-lint-ignore no-explicit-any |