1
0
Fork 0
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:
Dominic 2020-03-30 22:39:48 +02:00
parent 4c50ea0959
commit c508ac878d
Signed by: msrd0
GPG key ID: DCC8C247452E98F9
3 changed files with 14 additions and 34 deletions

View file

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