summaryrefslogtreecommitdiff
path: root/src/misc/mod.rs
blob: b5b326299e3a45112b8a86ca5423c4401f1ddaae (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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))
    }

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