mirror of
https://github.com/kataras/iris.git
synced 2025-01-23 10:41:03 +01:00
Former-commit-id: 533b277c6a33d44da48df2ad9ca2b5ebb962bc96
This commit is contained in:
parent
8d12c526d8
commit
8b74e3343d
|
@ -246,7 +246,7 @@ app.Macros().Get("string").RegisterFunc("has", func(validNames []string) func(st
|
|||
}
|
||||
})
|
||||
|
||||
app.Get("/static_validation/{name:string has([kataras,gerasimos,maropoulos]}", func(ctx iris.Context) {
|
||||
app.Get("/static_validation/{name:string has([kataras,gerasimos,maropoulos])}", func(ctx iris.Context) {
|
||||
name := ctx.Params().Get("name")
|
||||
ctx.Writef(`Hello %s | the name should be "kataras" or "gerasimos" or "maropoulos"
|
||||
otherwise this handler will not be executed`, name)
|
||||
|
|
|
@ -234,7 +234,7 @@ func main() {
|
|||
}
|
||||
})
|
||||
|
||||
app.Get("/static_validation/{name:string has([kataras,gerasimos,maropoulos]}", func(ctx iris.Context) {
|
||||
app.Get("/static_validation/{name:string has([kataras,gerasimos,maropoulos])}", func(ctx iris.Context) {
|
||||
name := ctx.Params().Get("name")
|
||||
ctx.Writef(`Hello %s | the name should be "kataras" or "gerasimos" or "maropoulos"
|
||||
otherwise this handler will not be executed`, name)
|
||||
|
|
Loading…
Reference in New Issue
Block a user