update the PR

This commit is contained in:
Manendra Pal Singh
2025-12-03 17:52:37 +05:30
parent d68da8907c
commit 6b62f91c91
3 changed files with 13 additions and 1 deletions

View File

@@ -29,6 +29,9 @@ var handlerProviders = map[handler.Type]Provider{
// It iterates over the module configurations, retrieves appropriate handler providers,
// and registers the handlers with the HTTP multiplexer.
func Register(ctx context.Context, mCfgs []Config, mux *http.ServeMux, mgr handler.PluginManager) error {
mux.Handle("/health", http.HandlerFunc(handler.HealthHandler))
log.Debugf(ctx, "Registering modules with config: %#v", mCfgs)
// Iterate over the handlers in the configuration.
for _, c := range mCfgs {