1
0
Fork 0
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:
Dominic 2019-09-30 18:18:10 +02:00
parent 8b0d655ebb
commit 29af28ad8d
Signed by: msrd0
GPG key ID: DCC8C247452E98F9
4 changed files with 56 additions and 51 deletions

View file

@ -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);
}