pub mod post; pub mod handlers { use std::sync::Arc; use warp::{Reply, Rejection}; use warp::http::Response; use crate::templates::{self, Html, RenderRucte}; use crate::internal::SiteState; pub async fn list(state: Arc) -> Result { let state = state.clone(); Response::builder() .html(|o| templates::index_html(o)) } pub async fn post(name: String) -> Result { Ok("Post test") } }