wip: add cv page
Some checks are pending
ci/woodpecker/push/publish Pipeline is pending

This commit is contained in:
Mylloon 2023-04-18 20:33:47 +02:00
parent 8f3b68800a
commit c5d3856313
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
3 changed files with 10 additions and 1 deletions

View file

@ -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))
})

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

@ -0,0 +1,7 @@
use actix_web::{get, Responder};
#[get("/cv")]
pub async fn page() -> impl Responder {
// TODO
actix_web::web::Redirect::to("/")
}

View file

@ -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;