We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fd0ff0e commit ec67a86Copy full SHA for ec67a86
path_value_test.go
@@ -35,6 +35,14 @@ func TestPathValue(t *testing.T) {
35
requestPath: "/users/Gojo/conversations/2948",
36
expectedBody: "Gojo 2948",
37
},
38
+ {
39
+ name: "Wildcard path",
40
+ pattern: "/users/{userID}/friends/*",
41
+ method: "POST",
42
+ pathKeys: []string{"userID", "*"},
43
+ requestPath: "/users/Gojo/friends/all-of-them/and/more",
44
+ expectedBody: "Gojo all-of-them/and/more",
45
+ },
46
}
47
48
for _, tc := range testCases {
0 commit comments