li7y/src/frontend/mod.rs

22 lines
475 B
Rust
Raw Normal View History

2024-07-03 14:19:58 +02:00
// SPDX-FileCopyrightText: 2024 Simon Bruder <simon@sbruder.de>
//
// SPDX-License-Identifier: AGPL-3.0-or-later
mod item;
2024-07-07 13:48:31 +02:00
mod item_class;
2024-07-11 01:12:34 +02:00
mod templates;
2024-07-03 14:19:58 +02:00
2024-07-11 01:12:34 +02:00
use actix_web::{get, web, Responder};
use maud::html;
2024-07-03 14:19:58 +02:00
pub fn config(cfg: &mut web::ServiceConfig) {
2024-07-07 13:48:31 +02:00
cfg.service(index)
.configure(item::config)
.configure(item_class::config);
2024-07-03 14:19:58 +02:00
}
#[get("/")]
2024-07-11 01:12:34 +02:00
async fn index() -> impl Responder {
templates::base(templates::TemplateConfig::default(), html! {})
2024-07-03 14:19:58 +02:00
}