diff --git a/src/main.rs b/src/main.rs index f296e8e..d21a16e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -3,8 +3,8 @@ use actix_web::{middleware::DefaultHeaders, web, App, HttpServer}; use std::io::Result; use crate::routes::{ - agreements, api_v1, blog, contrib, cours, cv, gaming, index, networks, not_found, portfolio, - setup, web3, + agreements, api_v1, blog, contrib, cours, cv, gaming, index, memorial, networks, not_found, + portfolio, setup, web3, }; mod config; @@ -46,6 +46,7 @@ async fn main() -> Result<()> { .service(cours::page) .service(cv::page) .service(gaming::page) + .service(memorial::page) .service(networks::page) .service(portfolio::page) .service(setup::page) diff --git a/src/routes/memorial.rs b/src/routes/memorial.rs new file mode 100644 index 0000000..2ade9da --- /dev/null +++ b/src/routes/memorial.rs @@ -0,0 +1,7 @@ +use actix_web::{get, Responder}; + +#[get("/memorial")] +pub async fn page() -> impl Responder { + // Memorial? J'espere ne jamais faire cette page lol + actix_web::web::Redirect::to("/") +} diff --git a/src/routes/mod.rs b/src/routes/mod.rs index c1b055f..da3bd5d 100644 --- a/src/routes/mod.rs +++ b/src/routes/mod.rs @@ -6,6 +6,7 @@ pub mod cours; pub mod cv; pub mod gaming; pub mod index; +pub mod memorial; pub mod networks; pub mod not_found; pub mod portfolio;