refacto: nest axum templates routes

This commit is contained in:
2024-08-04 18:34:42 +02:00
committed by florian_briand
parent 4a27dacd8e
commit e057889403
4 changed files with 35 additions and 20 deletions

View File

@ -1,2 +1,8 @@
pub mod hello;
pub mod index;
use axum::Router;
mod hello;
pub fn get_routes() -> Router {
Router::new()
.nest("/hello", hello::get_routes())
}