add gaming endpoint
Some checks are pending
ci/woodpecker/push/publish Pipeline is pending

This commit is contained in:
Mylloon 2023-04-14 18:03:30 +02:00
parent 3150fba1ca
commit 218c01a1a1
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
4 changed files with 21 additions and 10 deletions

View file

@ -2,7 +2,9 @@ use actix_files::Files;
use actix_web::{middleware::DefaultHeaders, web, App, HttpServer};
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 template;
@ -41,6 +43,7 @@ async fn main() -> Result<()> {
.service(blog::index)
.service(blog::page)
.service(web3::page)
.service(gaming::page)
.service(Files::new("/", config.static_location.clone()))
.default_service(web::to(not_found::page))
})

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

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

View file

@ -1,6 +1,7 @@
pub mod agreements;
pub mod blog;
pub mod contrib;
pub mod gaming;
pub mod index;
pub mod networks;
pub mod not_found;

View file

@ -77,7 +77,7 @@
/>
</a>
<a href="//mylloon.fr">
<a href="/">
<img
src="./badges/sucks.gif"
alt="this website sucks"
@ -132,13 +132,13 @@
/>
</a>
<!-- <a href="Link to future app who have all my accounts indexed"> -->
<a href="/gaming">
<img
src="./badges/gamers.jpg"
alt="gamers"
title="i am a proud gamer"
/>
<!-- </a> -->
</a>
<iframe
src="//incr.easrng.net/badge?key=mylloon"
@ -216,7 +216,7 @@
/>
</a>
<a href="//www.mylloon.fr/web3">
<a href="/web3">
<img
src="./badges/sendit.gif"
alt="send it to a friend!"