From 307f256997e7a4d0dbfae2fc0f7fb883ad4d6101 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Wed, 16 Aug 2023 10:51:58 +0200 Subject: [PATCH] add setup page --- src/main.rs | 3 ++- src/routes/mod.rs | 1 + src/routes/setup.rs | 9 +++++++++ 3 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 src/routes/setup.rs diff --git a/src/main.rs b/src/main.rs index 573e5d2..8d725c2 100644 --- a/src/main.rs +++ b/src/main.rs @@ -4,7 +4,7 @@ use std::io::Result; use crate::routes::{ agreements, api_v1, blog, contrib, cours, cv, gaming, index, networks, not_found, portfolio, - web3, + setup, web3, }; mod config; @@ -49,6 +49,7 @@ async fn main() -> Result<()> { .service(gaming::page) .service(cours::page) .service(cv::page) + .service(setup::page) .service(Files::new("/", config.static_location.to_owned())) .default_service(web::to(not_found::page)) }) diff --git a/src/routes/mod.rs b/src/routes/mod.rs index 8d3a6d5..c1b055f 100644 --- a/src/routes/mod.rs +++ b/src/routes/mod.rs @@ -9,4 +9,5 @@ pub mod index; pub mod networks; pub mod not_found; pub mod portfolio; +pub mod setup; pub mod web3; diff --git a/src/routes/setup.rs b/src/routes/setup.rs new file mode 100644 index 0000000..4a8d1f2 --- /dev/null +++ b/src/routes/setup.rs @@ -0,0 +1,9 @@ +use actix_web::{get, Responder}; + +#[get("/setup")] +pub async fn page() -> impl Responder { + // Explication de l'histoire de par exemple wiki/cat et le follow up + // avec les futures video youtube probablement un shortcut + // vers un billet de blog + actix_web::web::Redirect::to("/") +}