We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 99a182a + a9e298c commit 18984b5Copy full SHA for 18984b5
2 files changed
src/health.rs
@@ -0,0 +1,13 @@
1
+use rapina::prelude::*;
2
+use rapina::schemars;
3
+
4
+#[public]
5
+#[get("/health")]
6
+pub async fn health() -> Result<Json<HealthResponse>> {
7
+ Ok(Json(HealthResponse { status: "ok" }))
8
+}
9
10
+#[derive(Serialize, JsonSchema)]
11
+pub struct HealthResponse {
12
+ status: &'static str,
13
src/lib.rs
@@ -4,6 +4,7 @@ pub mod dashboard;
pub mod entity;
pub mod errors;
pub mod github;
+mod health;
mod merge_events;
mod pull_requests;
pub mod queue;
0 commit comments