use typeway::prelude::*;
typeway_path!(type HelloPath = "hello");
type API = (GetEndpoint<HelloPath, String>,);
async fn hello() -> &'static str {
"Hello from Typeway!"
}
#[tokio::main]
async fn main() {
Server::<API>::new((bind::<_, _, _>(hello),))
.serve("127.0.0.1:3000".parse().unwrap())
.await
.unwrap();
}