aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/pages/home.rs
blob: a694c3ce38157a9c61943ecc88ef82aa550a9de8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::{
    frontend::pages::{layout::Layout, HtmlTemplate},
    AppState,
};
use actix_web::{get, web::Data, Responder};

#[get("/")]
async fn page_home(state: Data<AppState>) -> impl Responder {
    HtmlTemplate(Layout {
        title: "Home - Jellything",
        main: markup::new! {
            h1 { "It works!" }
        },
    })
}