DuskSystems / wayfind

A speedy, flexible router for Rust.
Apache License 2.0
10 stars 0 forks source link

Implement builder pattern for routes #74

Closed CathalMullan closed 3 months ago

CathalMullan commented 3 months ago

More fluent way to set up routes.

Something like

let route = RouteBuilder::new("/hello/{name})
  .constraint(...)
  .method(Method::GET)
  ...
  .build();