katbin/src/api/routes/health.rs
ATechnoHazard 0556a03396
pastes: Add schema and some db ops
Signed-off-by: ATechnoHazard <amolele@gmail.com>
2020-06-25 16:03:33 +05:30

9 lines
162 B
Rust

use rocket::{Rocket};
#[get("/")]
fn check() -> &'static str { "OK" }
pub fn fuel(rocket: Rocket) -> Rocket {
rocket.mount("/api/health", routes![check])
}