roche 0.3.3

A cli to build serverless rust applications
1
2
3
4
5
6
7
8
9
pub fn handler() -> tide::Server<()> {
    let mut api = tide::new();
    api.at("/").get(|_| async {
        let uri = "https://httpbin.org/get";
        let string: String = surf::get(uri).recv_string().await?;
        Ok(string)
    });
    api
}