Skip to content

Commit

Permalink
add 200 OK on root path
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubmanczak committed Jul 13, 2024
1 parent 915ee69 commit e1e6100
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/routes/mod.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
use axum::Router;

mod health;
mod root;
mod splash;
mod teapot;
mod version;

pub fn routes() -> Router {
Router::new()
.merge(health::route())
.merge(root::route())
.merge(splash::route())
.merge(teapot::route())
.merge(version::route())
Expand Down
7 changes: 7 additions & 0 deletions src/routes/root.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
use axum::{routing::get, Router};

pub fn route() -> Router {
Router::new().route("/", get(root))
}

async fn root() -> () {}

0 comments on commit e1e6100

Please sign in to comment.