feat: Add frontend routing and asset handling with Axum
This commit is contained in:
9
apps/nxmesh-master/src/routes/mod.rs
Normal file
9
apps/nxmesh-master/src/routes/mod.rs
Normal file
@@ -0,0 +1,9 @@
|
||||
use axum::Router;
|
||||
|
||||
mod frontend;
|
||||
|
||||
pub async fn get_root_router() -> Router {
|
||||
Router::new()
|
||||
.merge(frontend::get_router().await)
|
||||
.fallback(frontend::get_fallback_handler().await)
|
||||
}
|
||||
Reference in New Issue
Block a user