mirror of
https://github.com/actix/actix-website
synced 2025-02-22 04:03:18 +01:00
removed slash from resources in scope example
This commit is contained in:
parent
c98a067163
commit
8ba23ce814
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user