Skip to content

Commit

Permalink
Merge pull request #9 from pulsate-dev/remove-unused-endpoint
Browse files Browse the repository at this point in the history
chore: remove unused endpoint
  • Loading branch information
m1sk9 authored Apr 23, 2024
2 parents 2cc1e5a + d5abfa8 commit c2b53a3
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 29 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Setup Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: 1.x.x
bun-version: 1.0.x

- name: Install dependencies
run: bun install --frozen-lockfile
Expand Down
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,3 @@ Accessing an endpoint with no destination will return a [`404`](https://develope
| `/x` | Pulsate X |
| `/youtube` | Pulsate YouTube |
| `/discussions` | Pulsate Org Discussion |
| `/rules` | Pulsate Code of Conduct |
| `/rules-ja` | Pulsate Code of Conduct (Japanese) |
Binary file modified bun.lockb
Binary file not shown.
28 changes: 2 additions & 26 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Hono } from "hono";
const app = new Hono();

app.get("/", (c) => {
return c.text("ホームページ準備中...");
return c.redirect("https://pulsate.dev", 302);
});

app.get("/discord", (c) => {
Expand All @@ -15,7 +15,7 @@ app.get("/github", (c) => {
});

app.get("/x", (c) => {
return c.redirect("https://x.com/PulsateDev", 302);
return c.redirect("https://x.com/pulsate_dev", 302);
});

app.get("/youtube", (c) => {
Expand All @@ -26,28 +26,4 @@ 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(
"https://github.com/pulsate-dev/.github/blob/main/CODE_OF_CONDUCT.md",
302,
);
});

// TODO: replace pulsate.dev/code-of-conduct-ja
app.get("/rules-ja", (c) => {
return c.redirect(
"https://github.com/pulsate-dev/.github/blob/main/CODE_OF_CONDUCT_JA.md",
302,
);
});

export default app;

0 comments on commit c2b53a3

Please sign in to comment.