mirror of
https://github.com/kataras/iris.git
synced 2025-03-14 08:36:28 +01:00
let's put the home section on the sidebar as well
parent
6aba338d0e
commit
7f414b4276
|
@ -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")
|
name := ctx.Params().Get("name")
|
||||||
ctx.Writef(`Hello %s | the name should be "kataras" or "maropoulos"
|
ctx.Writef(`Hello %s | the name should be "kataras" or "maropoulos"
|
||||||
otherwise this handler will not be executed`, name)
|
otherwise this handler will not be executed`, name)
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
* [[Home]]
|
||||||
* [[About]]
|
* [[About]]
|
||||||
* [[Support]]
|
* [[Support]]
|
||||||
* [[Installing Iris|Installation]]
|
* [[Installing Iris|Installation]]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user