3 ms·
https://github.com/fengsp/pencil/blob/master/examples/hello/src/main.rs#L84 https://github.com/fengsp/pencil/blob/master/examples/hello/... app.get("/", "h
by yeukhon 11y ago
https://github.com/fengsp/pencil/blob/master/examples/hello/src/main.rs#L84 https://github.com/fengsp/pencil/blob/master/examples/hello/...
app.get("/", "hello", hello);
app.get("/user/<int:user_id>", "user", user);
....
This reminds me of Pyramid more than Flask though, just my personal observation. The code looks pretty readable even from a non-Rust programmer.