pushing for review

This commit is contained in:
specCon18 2024-02-22 15:37:55 -05:00
parent 620b4b3de4
commit b1d7569150
19 changed files with 3742 additions and 228 deletions

14
src/router.rs Normal file
View file

@ -0,0 +1,14 @@
use axum::{Router, routing::get};
use tower_http::services::ServeDir;
use std::path::Path;
use super::handlers;
pub fn router(assets_path: &Path) -> Router {
Router::new()
.route("/", get(handlers::root))
.route("/blog", get(handlers::blog))
.route("/blog/post", get(handlers::blog_post))
.route("/resume", get(handlers::resume))
.route("/projects", get(handlers::projects))
.nest_service("/assets", ServeDir::new(assets_path))
}