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

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