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:
parent
c98a067163
commit
8ba23ce814
@ -305,7 +305,7 @@ A scoped layout of these paths would appear as follows
|
|||||||
App::new()
|
App::new()
|
||||||
.scope("/project", |proj_scope| {
|
.scope("/project", |proj_scope| {
|
||||||
proj_scope
|
proj_scope
|
||||||
.resource("/", |r| {
|
.resource("", |r| {
|
||||||
r.method(Method::GET)
|
r.method(Method::GET)
|
||||||
.f(get_projects);
|
.f(get_projects);
|
||||||
r.method(Method::POST)
|
r.method(Method::POST)
|
||||||
@ -317,7 +317,7 @@ A scoped layout of these paths would appear as follows
|
|||||||
.f(delete_project)})
|
.f(delete_project)})
|
||||||
.nested("/{project_id}/task", |task_scope| {
|
.nested("/{project_id}/task", |task_scope| {
|
||||||
task_scope
|
task_scope
|
||||||
.resource("/", |r| {
|
.resource("", |r| {
|
||||||
r.method(Method::GET)
|
r.method(Method::GET)
|
||||||
.f(get_tasks);
|
.f(get_tasks);
|
||||||
r.method(Method::POST)
|
r.method(Method::POST)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user