Skip to content

Commit 77b41e8

Browse files
bruc3mackenzi3aldas
authored andcommitted
document path paramater behaviour for same path across different methods
1 parent 57dfd88 commit 77b41e8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

website/content/guide/request.md

+4
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@ e.GET("/users/:name", func(c echo.Context) error {
7171
curl http://localhost:1323/users/Joe
7272
```
7373

74+
Note that when registering the same path for multiple methods, the path parameter
75+
name needs to be the same. All paths will be registered using the name from the
76+
first path.
77+
7478
### Binding Data
7579

7680
Also binding of request data to native Go structs and variables is supported.

0 commit comments

Comments
 (0)