mirror of
https://gitlab.com/msrd0/gotham-restful.git
synced 2025-04-20 06:54:46 +00:00
add server data for openapi
This commit is contained in:
parent
4ceb1ef302
commit
6cf4b05447
3 changed files with 15 additions and 9 deletions
|
@ -127,7 +127,7 @@ fn main()
|
|||
);
|
||||
|
||||
gotham::start(ADDR, build_router(chain, pipelines, |route| {
|
||||
route.with_openapi("Users Example", "0.0.1", |mut route| {
|
||||
route.with_openapi("Users Example", "0.0.1", ADDR, |mut route| {
|
||||
route.resource::<Users, _>("users");
|
||||
route.get_openapi("openapi");
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue