1
0
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:
Gerasimos (Makis) Maropoulos
2018-09-13 02:53:13 +03:00
parent efa17e8899
commit 52a07df0f4
5 changed files with 8 additions and 7 deletions

View File

@@ -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")