feat: add page system behing navbar items and skeletons for loading

This commit is contained in:
2024-08-06 00:18:09 +02:00
parent 898ee32f9a
commit e084372b44
15 changed files with 392 additions and 16 deletions

View File

@ -1,3 +1,4 @@
mod pages;
mod templates;
use std::path::Path;
@ -23,6 +24,7 @@ pub fn get_router(assets_path: &Path) -> axum::Router {
axum::Router::new()
.nest_service("/assets", ServeDir::new(assets_path))
.route("/", axum::routing::get(root))
.nest("/pages", pages::get_routes())
.merge(templates::get_routes())
.fallback(fallback)
}