1
0
mirror of https://github.com/actix/actix-website synced 2025-02-22 12:13:17 +01:00

removed slash from resources in scope example

This commit is contained in:
dowwie 2018-05-24 10:49:13 -04:00
parent c98a067163
commit 8ba23ce814

View File

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