mirror of
https://github.com/kataras/iris.git
synced 2026-01-22 19:36:00 +00:00
upstream fixes
Former-commit-id: 574060e41ace86cd86588795eadb1ad4083ec630
This commit is contained in:
@@ -230,7 +230,8 @@ func main() {
|
||||
ctx.Writef("User with ID: %d", id)
|
||||
})
|
||||
|
||||
// However, this one will match /user/john/ and also /user/john/send.
|
||||
// However, this one will match /user/john/send and also /user/john/everything/else/here
|
||||
// but will not match /user/john neither /user/john/.
|
||||
app.Post("/user/{name:string}/{action:path}", func(ctx iris.Context) {
|
||||
name := ctx.Params().Get("name")
|
||||
action := ctx.Params().Get("action")
|
||||
|
||||
Reference in New Issue
Block a user