Implement /status Health Check Endpoint and Refactor Plugin Registration
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 42/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- typescript
調査の方向性
まず root-status.controller.ts と homeserver.module.ts を確認し、提案されているプラグイン登録とエラーハンドリングを理解します。GET / と GET /status が説明されているレスポンスを返すこと、および未知のルートがカスタムの Not-found レスポンスを使用することを確認してください。この issue では特定のテストファイルについて言及されていません。
索引モデルが issue の本文から書いたものです。
説明
Description
Added a new root-status.controller.ts that provides two routes:
-
GET / — returns a simple welcome message
-
GET /status — returns server uptime, current timestamp, and status
-
Registered this controller plugin in
homeserver.module.ts. -
Also added a custom 404 error handler using app.onError for cleaner “not found” responses.
Key Code Snippets
root-status.controller.ts
import { Elysia } from 'elysia';
export const rootStatusPlugin = new Elysia()
.get('/', () => ({
message: 'Matrix server is live. Try /status.',
}))
.get('/status', () => ({
status: 'ok',
uptime: process.uptime(),
timestamp: new Date().toISOString(),
}));
homeserver.module.ts
app.onError(({ code }) => {
if (code === 'NOT_FOUND') {
return {
error: 'Route not found. Are you lost?',
};
}
});
If this looks good, I’d be happy to create a PR for these changes. Please assign it to me if so, happy to contribute!
- 主要言語
- TypeScript
- スター
- 17
- フォーク
- 18
- 平均マージ
- 2時間 11分
- マージ済み PR(30日)
- 2
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
RocketChat/homeserver のほかの issue
-
pruneEventDict and signEvent's `prune` flag should go away entirely, replaced by再び着手できるかも @sampaiodiego が 76 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンtodo :spiral_notepad: type: feature
RocketChat/homeserver#411 · コメント 1 件 · 担当者 1 名 ·
-
Include banned and invited servers in event destination set対応中かも @ggazzo が 233 日前に担当しました。 オープンtype: bug
難易度 4/5 3〜5日 初心者へのやさしさ 52/100
RocketChat/homeserver#388 ·
-
we need a map of rooms and destinations to avoid having to get rooms state just to send an event to all servers in the room.再び着手できるかも @sampaiodiego が 249 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンtodo :spiral_notepad: type: feature
RocketChat/homeserver#342 · コメント 4 件 · 担当者 1 名 ·
-
this may not be the best place to do this validation再び着手できるかも @sampaiodiego が 327 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンtodo :spiral_notepad:
RocketChat/homeserver#322 · コメント 1 件 · リアクション 1 件 · 担当者 1 名 ·
-
check if all sendEventToAllServersInRoom should be followed by an emitter再び着手できるかも @ggazzo が 359 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンtodo :spiral_notepad:
RocketChat/homeserver#304 · 担当者 1 名 ·
RocketChat/homeserver の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
langchain-ai/langchainjs#12239 ·
メンテナーはふだん 1 日以内に返信
-
Board view: the Monitoring column is always empty because compact issue rows drop displayStatusオープン
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
paperclipai/paperclip#21837 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100
code-yeongyu/senpi#6813 ·
メンテナーはふだん 1 日以内に返信
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
難易度 1/5 1時間未満 初心者へのやさしさ 93/100
lingdojo/kana-dojo#34169 · コメント 1 件 · リアクション 5 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100