This commit is contained in:
parent
8b4506e7c7
commit
f2180831ae
3 changed files with 11 additions and 2 deletions
|
@ -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
7
src/routes/memorial.rs
Normal 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("/")
|
||||||
|
}
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue