Skip to content

Commit d3af9da

Browse files
committed
refactor: Move backend code to 'lib.rs'
1 parent 1a30ef7 commit d3af9da

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/lib.rs

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

0 commit comments

Comments
 (0)