1 2 3 4 5
pub fn handler() -> tide::Server<()> { let mut api = tide::new(); api.at("/").get(|_| async { Ok("Hello, world!") }); api }