From c6c5446937dc0fd8c40ffd4a86a28ccbdbc4d434 Mon Sep 17 00:00:00 2001 From: Nikita Puzankov Date: Thu, 26 Dec 2019 18:15:39 +0400 Subject: [PATCH] Update url-dispatch.md (#129) * Update url-dispatch.md Description was updated according to an example. Users paths were added instead of projects and tasks. Co-authored-by: Yuki Okushi --- content/docs/url-dispatch.md | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/content/docs/url-dispatch.md b/content/docs/url-dispatch.md index c7f40e1..8a5c873 100644 --- a/content/docs/url-dispatch.md +++ b/content/docs/url-dispatch.md @@ -235,13 +235,11 @@ foo/abc/def/a/b/c -> Params{'bar':u'abc', 'tail': 'def/a/b/c'} Scoping helps you organize routes sharing common root paths. You can nest scopes within scopes. -Suppose that you want to organize paths to endpoints used to manage a "Project", -consisting of "Tasks". Such paths may include: +Suppose that you want to organize paths to endpoints used to view "Users". Such paths may include: -- /project -- /project/{project_id} -- /project/{project_id}/task -- /project/{project_id}/task/{task_id} +- /users +- /users/show +- /users/show/{id} A scoped layout of these paths would appear as follows