mirror of
https://gitlab.com/msrd0/gotham-restful.git
synced 2025-04-20 23:07:01 +00:00
clean up some stuff ;; use Default::default() more often
This commit is contained in:
parent
4c50ea0959
commit
c508ac878d
3 changed files with 14 additions and 34 deletions
|
@ -135,7 +135,7 @@ fn main()
|
|||
);
|
||||
|
||||
gotham::start(ADDR, build_router(chain, pipelines, |route| {
|
||||
route.with_openapi("Users Example", "0.0.1", format!("http://{}", ADDR), |mut route| {
|
||||
route.with_openapi("Users Example".to_owned(), "0.0.1".to_owned(), format!("http://{}", ADDR), |mut route| {
|
||||
route.resource::<Users, _>("users");
|
||||
route.resource::<Auth, _>("auth");
|
||||
route.get_openapi("openapi");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue