Updated usage examples
This commit is contained in:
parent
818e0054c1
commit
24b7c6ead7
@ -26,12 +26,12 @@ s.Get("/", func(ctx web.Context) error {
|
||||
|
||||
// Parameter route
|
||||
s.Get("/blog/:post", func(ctx web.Context) error {
|
||||
return ctx.String(ctx.Get("post"))
|
||||
return ctx.String(ctx.Request().Param("post"))
|
||||
})
|
||||
|
||||
// Wildcard route
|
||||
s.Get("/images/*file", func(ctx web.Context) error {
|
||||
return ctx.String(ctx.Get("file"))
|
||||
return ctx.String(ctx.Request().Param("file"))
|
||||
})
|
||||
|
||||
s.Run(":8080")
|
||||
|
Loading…
Reference in New Issue
Block a user