refacto: rename html and rs templates dirs to old_*

This commit is contained in:
2024-08-23 15:41:49 +02:00
committed by florian_briand
parent 217667253a
commit 7487b34a17
31 changed files with 7 additions and 8 deletions

View File

@ -1,6 +1,3 @@
mod pages;
mod templates;
use std::path::Path;
use askama_axum::Template;
@ -23,7 +20,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())
// .nest("/pages", old_pages::get_routes())
// .merge(old_templates::get_routes())
.fallback(fallback)
}