From f2180831aebc94c3040d7f269ceaec60b4eea7db Mon Sep 17 00:00:00 2001 From: Mylloon Date: Wed, 16 Aug 2023 10:58:41 +0200 Subject: [PATCH] add the memorial page --- src/main.rs | 5 +++-- src/routes/memorial.rs | 7 +++++++ src/routes/mod.rs | 1 + 3 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 src/routes/memorial.rs 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;