This commit is contained in:
parent
8f3b68800a
commit
c5d3856313
3 changed files with 10 additions and 1 deletions
|
@ -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
7
src/routes/cv.rs
Normal file
|
@ -0,0 +1,7 @@
|
|||
use actix_web::{get, Responder};
|
||||
|
||||
#[get("/cv")]
|
||||
pub async fn page() -> impl Responder {
|
||||
// TODO
|
||||
actix_web::web::Redirect::to("/")
|
||||
}
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue