mirror of
https://gitlab.com/msrd0/gotham-restful.git
synced 2025-04-20 06:54:46 +00:00
the example compiles :party:
This commit is contained in:
parent
8b0d655ebb
commit
29af28ad8d
4 changed files with 56 additions and 51 deletions
|
@ -125,9 +125,12 @@ fn main()
|
|||
.add(logging)
|
||||
.build()
|
||||
);
|
||||
|
||||
|
||||
gotham::start(ADDR, build_router(chain, pipelines, |route| {
|
||||
route.resource::<Users, _>("users");
|
||||
route.with_openapi("Users Example", "0.0.1", |mut route| {
|
||||
route.resource::<Users, _>("users");
|
||||
route.get_openapi("openapi");
|
||||
});
|
||||
}));
|
||||
println!("Gotham started on {} for testing", ADDR);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue