summaryrefslogtreecommitdiff
path: root/src/misc/mod.rs
blob: c2992cc5b1157d0b6f0cca0185494941387cab00 (plain) (blame)
1
2
3
4
5
6
7
8
9
pub mod handlers {
    use crate::templates::{self, Html, RenderRucte};
    use color_eyre::Result;
    use warp::{http::Response, Rejection, Reply};

    pub async fn index() -> Result<impl Reply, Rejection> {
        Response::builder().html(|o| templates::index_html(o))
    }
}