use maw::prelude::*;
#[derive(rust_embed::RustEmbed)]
#[folder = "examples/assets/"]
struct Assets;
#[tokio::main]
async fn main() -> Result<(), MawError> {
tracing_subscriber::fmt::init();
let router = Router::new()
.get("/", async |_: &mut Ctx| "Home")
.static_files("/static", StaticFiles::new(Assets).max_age(3600));
let app = App::new().router(router);
app.listen("127.0.0.1:3000").await
}