1
0
Fork 0
mirror of https://gitlab.com/msrd0/gotham-restful.git synced 2025-04-20 23:07:01 +00:00

remove the annoying ToString type when what we really need is a &str

This commit is contained in:
Dominic 2020-03-30 22:42:22 +02:00
parent c508ac878d
commit 1d1682a03d
Signed by: msrd0
GPG key ID: DCC8C247452E98F9
3 changed files with 17 additions and 17 deletions

View file

@ -136,8 +136,8 @@ fn main()
gotham::start(ADDR, build_router(chain, pipelines, |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.resource::<Users>("users");
route.resource::<Auth>("auth");
route.get_openapi("openapi");
});
}));