diff --git a/src/main.rs b/src/main.rs index 5e46757..05e8aa0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -3,7 +3,7 @@ use actix_web::{middleware::DefaultHeaders, web, App, HttpServer}; use std::io::Result; use crate::routes::{ - agreements, blog, contrib, cours, gaming, index, networks, not_found, portfolio, web3, + agreements, blog, contrib, cours, cv, gaming, index, networks, not_found, portfolio, web3, }; mod config; @@ -45,6 +45,7 @@ async fn main() -> Result<()> { .service(web3::page) .service(gaming::page) .service(cours::page) + .service(cv::page) .service(Files::new("/", config.static_location.clone())) .default_service(web::to(not_found::page)) }) diff --git a/src/routes/cv.rs b/src/routes/cv.rs new file mode 100644 index 0000000..c9e4cdd --- /dev/null +++ b/src/routes/cv.rs @@ -0,0 +1,7 @@ +use actix_web::{get, Responder}; + +#[get("/cv")] +pub async fn page() -> impl Responder { + // TODO + actix_web::web::Redirect::to("/") +} diff --git a/src/routes/mod.rs b/src/routes/mod.rs index be59f31..f10dfb9 100644 --- a/src/routes/mod.rs +++ b/src/routes/mod.rs @@ -2,6 +2,7 @@ pub mod agreements; pub mod blog; pub mod contrib; pub mod cours; +pub mod cv; pub mod gaming; pub mod index; pub mod networks;