Just like the MVC controllers, route group(aka Party) controller's fields are injected by the parent or current party's RegisterDependency method. This controller structure could be live to another sub-package of our application as well.
| 30 | // |
| 31 | // This controller structure could be live to another sub-package of our application as well. |
| 32 | type WeatherController struct { |
| 33 | Client *weatherapi.Client // This is automatically injected by .RegisterDependency. |
| 34 | } |
| 35 | |
| 36 | func (api *WeatherController) Configure(r iris.Party) { |
| 37 | // Register routes under /api/weather. |
nothing calls this directly
no outgoing calls
no test coverage detected