pushing for review
This commit is contained in:
parent
620b4b3de4
commit
b1d7569150
19 changed files with 3742 additions and 228 deletions
14
src/router.rs
Normal file
14
src/router.rs
Normal 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))
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue