refacto: move home code into a dedicated file and rename index to home everywhere

This commit is contained in:
2024-08-27 10:55:17 +02:00
committed by florian_briand
parent ab908f2664
commit b7fcfe3792
4 changed files with 17 additions and 14 deletions

View File

@ -1,7 +1,10 @@
use axum::{routing, Router};
mod cps;
mod home;
pub fn get_routes() -> Router {
Router::new().route("/cps", routing::get(cps::cps))
Router::new()
.route("/", axum::routing::get(home::home))
.route("/cps", routing::get(cps::cps))
}