Skip to content

Commit 0246cb9

Browse files
Fennygitbook-bot
authored andcommitted
GitBook: [master] one page modified
1 parent dc25244 commit 0246cb9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

context.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -986,12 +986,12 @@ c.Route() *Route
986986

987987
app.Get("/hello", func(c *fiber.Ctx) {
988988
r := c.Route()
989-
fmt.Println(r.Method, r.Path, r.Prefix, r.Regex, r.Params, r.HandlerCtx)
989+
fmt.Println(r.Method, r.Path, r.Params, r.Regexp, r.Handler)
990990
})
991991

992992
app.Post("/:api?", func(c *fiber.Ctx) {
993993
c.Route()
994-
// => {POST /:api? ^(?:/([^/]+?))?/?$ [api] 0x7b49e0}
994+
// => {GET /hello [] nil 0x7b49e0}
995995
})
996996
```
997997
{% endcode %}

0 commit comments

Comments
 (0)