MCPcopy Create free account
hub / github.com/kataras/iris / Router

Method Router

mvc/controller.go:267–269  ·  view source on GitHub ↗

Router is the standard Iris router's public API. With this you can register middleware, view layouts, subdomains, serve static files and even add custom standard iris handlers as normally. This Router is the router instance that came from the parent MVC Application, it's the `app.Party(...)` argume

()

Source from the content-addressed store, hash-verified

265//
266// Can used at both `BeforeActivation` and `AfterActivation`.
267func (c *ControllerActivator) Router() router.Party {
268 return c.app.Router
269}
270
271// GetRoute returns the first registered route based on the controller's method name.
272// It can be used to change the route's name, which is useful for reverse routing

Callers 1

logErrorfMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected