1
0
Fork 0
mirror of https://gitlab.com/msrd0/gotham-restful.git synced 2025-04-20 06:54:46 +00:00

openapi for read method

This commit is contained in:
Dominic 2019-10-01 00:23:34 +02:00
parent d9b4b22af3
commit 7286054a2f
Signed by: msrd0
GPG key ID: DCC8C247452E98F9
3 changed files with 92 additions and 44 deletions

View file

@ -118,7 +118,7 @@ fn main()
);
gotham::start(ADDR, build_router(chain, pipelines, |route| {
route.with_openapi("Users Example", "0.0.1", ADDR, |mut route| {
route.with_openapi("Users Example", "0.0.1", format!("http://{}", ADDR), |mut route| {
route.resource::<Users, _>("users");
route.get_openapi("openapi");
});