bug fixes

This commit is contained in:
shreyvishal
2025-06-17 14:08:28 +00:00
parent 8f357eadbc
commit 789fda2666
12 changed files with 399 additions and 98 deletions

View File

@@ -29,6 +29,8 @@ 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 {