diff --git a/gotham_restful/src/auth.rs b/gotham_restful/src/auth.rs index cd24b86..54c6a89 100644 --- a/gotham_restful/src/auth.rs +++ b/gotham_restful/src/auth.rs @@ -146,7 +146,7 @@ fn main() { ); let (chain, pipelines) = single_pipeline(new_pipeline().add(auth).build()); gotham::start("127.0.0.1:8080", build_router(chain, pipelines, |route| { - route.resource::("auth"); + route.resource::("auth"); })); } ``` diff --git a/gotham_restful/src/lib.rs b/gotham_restful/src/lib.rs index 1cc9420..8b5e607 100644 --- a/gotham_restful/src/lib.rs +++ b/gotham_restful/src/lib.rs @@ -50,7 +50,7 @@ fn read_all(_state: &mut State) -> Success> { /// Our main method. fn main() { gotham::start("127.0.0.1:8080", build_simple_router(|route| { - route.resource::("users"); + route.resource::("users"); })); } ``` @@ -76,7 +76,7 @@ fn create(_state : &mut State, body : RawImage) -> Raw> { } # fn main() { # gotham::start("127.0.0.1:8080", build_simple_router(|route| { -# route.resource::("image"); +# route.resource::("image"); # })); # } ```