From c5d38563131e03ab4254259ebe5e4e47bf415c43 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Tue, 18 Apr 2023 20:33:47 +0200 Subject: [PATCH] wip: add cv page --- src/main.rs | 3 ++- src/routes/cv.rs | 7 +++++++ src/routes/mod.rs | 1 + 3 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 src/routes/cv.rs diff --git a/src/main.rs b/src/main.rs index 5e46757..05e8aa0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -3,7 +3,7 @@ use actix_web::{middleware::DefaultHeaders, web, App, HttpServer}; use std::io::Result; use crate::routes::{ - agreements, blog, contrib, cours, gaming, index, networks, not_found, portfolio, web3, + agreements, blog, contrib, cours, cv, gaming, index, networks, not_found, portfolio, web3, }; mod config; @@ -45,6 +45,7 @@ async fn main() -> Result<()> { .service(web3::page) .service(gaming::page) .service(cours::page) + .service(cv::page) .service(Files::new("/", config.static_location.clone())) .default_service(web::to(not_found::page)) }) diff --git a/src/routes/cv.rs b/src/routes/cv.rs new file mode 100644 index 0000000..c9e4cdd --- /dev/null +++ b/src/routes/cv.rs @@ -0,0 +1,7 @@ +use actix_web::{get, Responder}; + +#[get("/cv")] +pub async fn page() -> impl Responder { + // TODO + actix_web::web::Redirect::to("/") +} diff --git a/src/routes/mod.rs b/src/routes/mod.rs index be59f31..f10dfb9 100644 --- a/src/routes/mod.rs +++ b/src/routes/mod.rs @@ -2,6 +2,7 @@ pub mod agreements; pub mod blog; pub mod contrib; pub mod cours; +pub mod cv; pub mod gaming; pub mod index; pub mod networks;