This commit is contained in:
parent
3150fba1ca
commit
218c01a1a1
4 changed files with 21 additions and 10 deletions
|
@ -2,7 +2,9 @@ use actix_files::Files;
|
||||||
use actix_web::{middleware::DefaultHeaders, web, App, HttpServer};
|
use actix_web::{middleware::DefaultHeaders, web, App, HttpServer};
|
||||||
use std::io::Result;
|
use std::io::Result;
|
||||||
|
|
||||||
use crate::routes::{agreements, blog, contrib, index, networks, not_found, portfolio, web3};
|
use crate::routes::{
|
||||||
|
agreements, blog, contrib, gaming, index, networks, not_found, portfolio, web3,
|
||||||
|
};
|
||||||
|
|
||||||
mod config;
|
mod config;
|
||||||
mod template;
|
mod template;
|
||||||
|
@ -41,6 +43,7 @@ async fn main() -> Result<()> {
|
||||||
.service(blog::index)
|
.service(blog::index)
|
||||||
.service(blog::page)
|
.service(blog::page)
|
||||||
.service(web3::page)
|
.service(web3::page)
|
||||||
|
.service(gaming::page)
|
||||||
.service(Files::new("/", config.static_location.clone()))
|
.service(Files::new("/", config.static_location.clone()))
|
||||||
.default_service(web::to(not_found::page))
|
.default_service(web::to(not_found::page))
|
||||||
})
|
})
|
||||||
|
|
7
src/routes/gaming.rs
Normal file
7
src/routes/gaming.rs
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
use actix_web::{get, Responder};
|
||||||
|
|
||||||
|
#[get("/gaming")]
|
||||||
|
pub async fn page() -> impl Responder {
|
||||||
|
// TODO
|
||||||
|
actix_web::web::Redirect::to("/")
|
||||||
|
}
|
|
@ -1,6 +1,7 @@
|
||||||
pub mod agreements;
|
pub mod agreements;
|
||||||
pub mod blog;
|
pub mod blog;
|
||||||
pub mod contrib;
|
pub mod contrib;
|
||||||
|
pub mod gaming;
|
||||||
pub mod index;
|
pub mod index;
|
||||||
pub mod networks;
|
pub mod networks;
|
||||||
pub mod not_found;
|
pub mod not_found;
|
||||||
|
|
|
@ -77,7 +77,7 @@
|
||||||
/>
|
/>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<a href="//mylloon.fr">
|
<a href="/">
|
||||||
<img
|
<img
|
||||||
src="./badges/sucks.gif"
|
src="./badges/sucks.gif"
|
||||||
alt="this website sucks"
|
alt="this website sucks"
|
||||||
|
@ -132,13 +132,13 @@
|
||||||
/>
|
/>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<!-- <a href="Link to future app who have all my accounts indexed"> -->
|
<a href="/gaming">
|
||||||
<img
|
<img
|
||||||
src="./badges/gamers.jpg"
|
src="./badges/gamers.jpg"
|
||||||
alt="gamers"
|
alt="gamers"
|
||||||
title="i am a proud gamer"
|
title="i am a proud gamer"
|
||||||
/>
|
/>
|
||||||
<!-- </a> -->
|
</a>
|
||||||
|
|
||||||
<iframe
|
<iframe
|
||||||
src="//incr.easrng.net/badge?key=mylloon"
|
src="//incr.easrng.net/badge?key=mylloon"
|
||||||
|
@ -216,7 +216,7 @@
|
||||||
/>
|
/>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<a href="//www.mylloon.fr/web3">
|
<a href="/web3">
|
||||||
<img
|
<img
|
||||||
src="./badges/sendit.gif"
|
src="./badges/sendit.gif"
|
||||||
alt="send it to a friend!"
|
alt="send it to a friend!"
|
||||||
|
|
Loading…
Reference in a new issue