What problem would this feature solve?
Components implementing http.EndpointConfigurer are not currently detected or invoked automatically.
As a result, their endpoint mappings are not collected and registered by the framework.
What would you like to see?
Add an endpoint mapping processor that detects components implementing http.EndpointConfigurer, calls their ConfigureEndpoints method, and collects the resulting handler mappings.
For example:
type EndpointConfigurer interface {
ConfigureEndpoints(endpoints Endpoints)
}
The processor should:
- find all components implementing http.EndpointConfigurer
- call ConfigureEndpoints during HTTP setup
- collect/register the produced handler mappings
- make those mappings available to the HTTP server/router
What alternatives have you considered?
No response
Additional context
This would make endpoint registration extensible and allow components to contribute HTTP mappings in a framework-managed way.
What problem would this feature solve?
Components implementing
http.EndpointConfigurerare not currently detected or invoked automatically.As a result, their endpoint mappings are not collected and registered by the framework.
What would you like to see?
Add an endpoint mapping processor that detects components implementing
http.EndpointConfigurer, calls theirConfigureEndpointsmethod, and collects the resulting handler mappings.For example:
The processor should:
What alternatives have you considered?
No response
Additional context
This would make endpoint registration extensible and allow components to contribute HTTP mappings in a framework-managed way.