Open puper opened 7 years ago
I don't use this package, but by looking at the source code, I can say you can get the request path using this:
func yourController(c *routing.Context) {
path := c.Request.URL.Path
c.Write(fmt.Sprintf("you hit %s", path))
}
Im want to do some permission check in middleware.