add the memorial page
All checks were successful
ci/woodpecker/push/publish Pipeline was successful

This commit is contained in:
Mylloon 2023-08-16 10:58:41 +02:00
parent 8b4506e7c7
commit f2180831ae
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
3 changed files with 11 additions and 2 deletions

View file

@ -3,8 +3,8 @@ use actix_web::{middleware::DefaultHeaders, web, App, HttpServer};
use std::io::Result; use std::io::Result;
use crate::routes::{ use crate::routes::{
agreements, api_v1, blog, contrib, cours, cv, gaming, index, networks, not_found, portfolio, agreements, api_v1, blog, contrib, cours, cv, gaming, index, memorial, networks, not_found,
setup, web3, portfolio, setup, web3,
}; };
mod config; mod config;
@ -46,6 +46,7 @@ async fn main() -> Result<()> {
.service(cours::page) .service(cours::page)
.service(cv::page) .service(cv::page)
.service(gaming::page) .service(gaming::page)
.service(memorial::page)
.service(networks::page) .service(networks::page)
.service(portfolio::page) .service(portfolio::page)
.service(setup::page) .service(setup::page)

7
src/routes/memorial.rs Normal file
View file

@ -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("/")
}

View file

@ -6,6 +6,7 @@ pub mod cours;
pub mod cv; pub mod cv;
pub mod gaming; pub mod gaming;
pub mod index; pub mod index;
pub mod memorial;
pub mod networks; pub mod networks;
pub mod not_found; pub mod not_found;
pub mod portfolio; pub mod portfolio;