snix_castore_http/
router.rs1use crate::app_state::AppState;
2use crate::routes;
3use axum::Router;
4use axum::routing::get;
5
6pub fn gen_router(app_state: AppState) -> Router {
7 Router::new()
8 .route("/{*path}", get(routes::root_node_contents))
9 .route("/", get(routes::root_node_contents))
10 .with_state(app_state)
11}