Skip to content

Commit 84e0024

Browse files
committed
feat: Implement a basic health-check endpoint
1 parent eee9104 commit 84e0024

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/main.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#[macro_use]
2+
extern crate rocket;
3+
4+
#[get("/health_check")]
5+
fn health_check() {
6+
()
7+
}
8+
9+
#[launch]
10+
fn rocket() -> _ {
11+
rocket::build().mount("/", routes![health_check])
12+
}

0 commit comments

Comments
 (0)