// SPDX-FileCopyrightText: 2024 Simon Bruder // // SPDX-License-Identifier: AGPL-3.0-or-later mod item; mod item_class; mod templates; use actix_web::{get, web, Responder}; use maud::html; pub fn config(cfg: &mut web::ServiceConfig) { cfg.service(index) .configure(item::config) .configure(item_class::config); } #[get("/")] async fn index() -> impl Responder { templates::base(templates::TemplateConfig::default(), html! {}) }