diff --git a/Routing-path-parameter-types.md b/Routing-path-parameter-types.md index f5b48f4..e077a8b 100644 --- a/Routing-path-parameter-types.md +++ b/Routing-path-parameter-types.md @@ -119,7 +119,8 @@ func(validNames []string) func(string) bool { } }) -app.Get("/static_validation/{name:string has([kataras,maropoulos])}", func(ctx iris.Context) { +app.Get("/static_validation/{name:string has([kataras,maropoulos])}", +func(ctx iris.Context) { name := ctx.Params().Get("name") ctx.Writef(`Hello %s | the name should be "kataras" or "maropoulos" otherwise this handler will not be executed`, name) diff --git a/_Sidebar.md b/_Sidebar.md index f36c8a2..2ce59bc 100644 --- a/_Sidebar.md +++ b/_Sidebar.md @@ -1,3 +1,4 @@ +* [[Home]] * [[About]] * [[Support]] * [[Installing Iris|Installation]]