From 8ba23ce8148aa17adf854975126c7a9476a8107d Mon Sep 17 00:00:00 2001 From: dowwie Date: Thu, 24 May 2018 10:49:13 -0400 Subject: [PATCH] removed slash from resources in scope example --- content/docs/url-dispatch.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/docs/url-dispatch.md b/content/docs/url-dispatch.md index df9ae7e..aaf5508 100644 --- a/content/docs/url-dispatch.md +++ b/content/docs/url-dispatch.md @@ -305,7 +305,7 @@ A scoped layout of these paths would appear as follows App::new() .scope("/project", |proj_scope| { proj_scope - .resource("/", |r| { + .resource("", |r| { r.method(Method::GET) .f(get_projects); r.method(Method::POST) @@ -317,7 +317,7 @@ A scoped layout of these paths would appear as follows .f(delete_project)}) .nested("/{project_id}/task", |task_scope| { task_scope - .resource("/", |r| { + .resource("", |r| { r.method(Method::GET) .f(get_tasks); r.method(Method::POST)