From 55011d9cbe121bc82965e8aaf9ad6403484de892 Mon Sep 17 00:00:00 2001 From: m1sk9 Date: Thu, 15 Feb 2024 04:46:11 +0900 Subject: [PATCH] chore: `/community` to `410` --- deno.lock | 5 +++++ main.ts | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/deno.lock b/deno.lock index 6e21d50..93ef0e2 100644 --- a/deno.lock +++ b/deno.lock @@ -65,6 +65,7 @@ "https://deno.land/x/hono@v4.0.2/adapter/deno/ssg.ts": "49d73dd0d351fc52a54bfc8094096aff957f5a955a3eb976844ed8d88903bc0f", "https://deno.land/x/hono@v4.0.2/client/client.ts": "9aa632e0df3bb1e10081a29577117c92b65f27252c56d2474ddba2113f584848", "https://deno.land/x/hono@v4.0.2/client/index.ts": "30def535310a37bede261f1b23d11a9758983b8e9d60a6c56309cee5f6746ab2", + "https://deno.land/x/hono@v4.0.2/client/types.ts": "3c00a7ec75de1eb798260796e02a90fc8850aef023a5787467a5eb8c9fc7c297", "https://deno.land/x/hono@v4.0.2/client/utils.ts": "b61b11614aa976e4b6f829642528bd78bf8d19a72aa57426e40eb21507a69c0a", "https://deno.land/x/hono@v4.0.2/compose.ts": "37d6e33b7db80e4c43a0629b12fd3a1e3406e7d9e62a4bfad4b30426ea7ae4f1", "https://deno.land/x/hono@v4.0.2/context.ts": "164a047af74eea44c4e2b8fb9eb7a27c82fc44fe6ea4bc864bf1d23f8f5e3598", @@ -100,6 +101,7 @@ "https://deno.land/x/hono@v4.0.2/jsx/dom/render.ts": "46b6cbf176aae20d8bac1af7f87934e5a6b07b1422667851661906418ce86fa5", "https://deno.land/x/hono@v4.0.2/jsx/hooks/index.ts": "aa5bf89ca6f27b000858da32098c3a107dd0a59ba0efce69b3256b21c34ae46f", "https://deno.land/x/hono@v4.0.2/jsx/index.ts": "7ff75df12923a67c2fc4c2d06afc6db66ae95f854f091f6aa614b3e13f7d6ba8", + "https://deno.land/x/hono@v4.0.2/jsx/intrinsic-elements.ts": "21c3a8f6ba07f0d7d7c0ec7293c79c26b9b62df2894e26cb6c17b6c7ec381264", "https://deno.land/x/hono@v4.0.2/jsx/streaming.ts": "7f2255d54a69e98121dc02820be8832a880d224ce07f9d472f2a287d3906bb42", "https://deno.land/x/hono@v4.0.2/jsx/types.ts": "880971bd1e0704a6fba6b786ca596cbe23fc06e36c506f42ea17f84f9879f278", "https://deno.land/x/hono@v4.0.2/jsx/utils.ts": "7b9d84ce478c66a5f4709dc3a873ac7104ba3427597683221827abec2761da0e", @@ -134,6 +136,7 @@ "https://deno.land/x/hono@v4.0.2/router/trie-router/index.ts": "3eb75e7f71ba81801631b30de6b1f5cefb2c7239c03797e2b2cbab5085911b41", "https://deno.land/x/hono@v4.0.2/router/trie-router/node.ts": "04d2eac912cc367b95545ce10d889134fc37be74ca729a7f0772970f37b29d11", "https://deno.land/x/hono@v4.0.2/router/trie-router/router.ts": "54ced78d35676302c8fcdda4204f7bdf5a7cc907fbf9967c75674b1e394f830d", + "https://deno.land/x/hono@v4.0.2/types.ts": "d520a35e3a4e22ab2189871a01c3b835c0b8b54abb5bc28ce133e9be0f9f8abe", "https://deno.land/x/hono@v4.0.2/utils/body.ts": "1c7013f83bbef8216b3d862111efd5a183eaa29e86decf9a7eec6cdf25757e93", "https://deno.land/x/hono@v4.0.2/utils/buffer.ts": "9066a973e64498cb262c7e932f47eed525a51677b17f90893862b7279dc0773e", "https://deno.land/x/hono@v4.0.2/utils/cookie.ts": "a8d61878bc6eb338d17758e2b5b47512ac1ced8d824fd4ff7b637b091cc7b28f", @@ -142,11 +145,13 @@ "https://deno.land/x/hono@v4.0.2/utils/filepath.ts": "77b01ccb799dcd3ed60ac2e9726e0b786b47f33308533b5ff9b6430ba8e9299c", "https://deno.land/x/hono@v4.0.2/utils/handler.ts": "2940f60d3fdae3df1ebde7f88c0f703c64bb1311c2c0a60f97e80a57b5690393", "https://deno.land/x/hono@v4.0.2/utils/html.ts": "6ea4f6bf41587a51607dff7a6d2865ef4d5001e4203b07e5c8a45b63a098e871", + "https://deno.land/x/hono@v4.0.2/utils/http-status.ts": "f5b820f2793e45209f34deddf147b23e3133a89eb4c57dc643759a504706636b", "https://deno.land/x/hono@v4.0.2/utils/jwt/index.ts": "5e4b82a42eb3603351dfce726cd781ca41cb57437395409d227131aec348d2d5", "https://deno.land/x/hono@v4.0.2/utils/jwt/jwt.ts": "02ff7bbf1298ffcc7a40266842f8eac44b6c136453e32d4441e24d0cbfba3a95", "https://deno.land/x/hono@v4.0.2/utils/jwt/types.ts": "1dd79fce49dcaf54511d9bca88f5ae508cef577225aa581c811b248dc9c7a121", "https://deno.land/x/hono@v4.0.2/utils/mime.ts": "1e5db0919d2127995ec466dfd1ee637c3d63084f516ccbd3c6906ccf0d3f3c46", "https://deno.land/x/hono@v4.0.2/utils/stream.ts": "fe5f539a79c476e6af39e2549fa06054ad3c7ff3cbfa2c4c752e879cdd3365d5", + "https://deno.land/x/hono@v4.0.2/utils/types.ts": "47426b7de99a75aa39305a21868c8d8e8d1316d24136a2d35fdf24e15f72970c", "https://deno.land/x/hono@v4.0.2/utils/url.ts": "d9d307a495e7dfc6e916fbcfa74c2d8d23e8e685bddc5e6ebc9c0f784345a01a", "https://deno.land/x/hono@v4.0.2/validator/index.ts": "6c986e8b91dcf857ecc8164a506ae8eea8665792a4ff7215471df669c632ae7c", "https://deno.land/x/hono@v4.0.2/validator/validator.ts": "1a7b524292662e5219fd61a9872c2586aa23a2328800211a8fdc268b089f75f1" diff --git a/main.ts b/main.ts index 52a30d6..f1820c7 100644 --- a/main.ts +++ b/main.ts @@ -27,10 +27,15 @@ app.get('/youtube', (c) => { return c.redirect('https://youtube.com/@pulsate-dev', 302); }); -app.get('/community', (c) => { +app.get('/discussions', (c) => { return c.redirect('https://github.com/orgs/pulsate-dev/discussions', 302); }); +// TODO: remove /community +app.get('/community', (c) => { + return c.text("410 Gone: このエンドポイントは現在 /discussions に置き換わっています.", 410); +}); + // TODO: replace pulsate.dev/code-of-conduct app.get('/rules', (c) => { return c.redirect(