feat(api): add composite ogen handler for incremental operations

This commit is contained in:
shira committed 2026-10-05 21:20:46 +03:00
1 parent 0f206bfc29
commit b2f6e87bfe
6 files changed
+133 -6

No files matched your search

+3 -2
View File
@@ -40,15 +40,16 @@ func initialize(ctx context.Context, config2 config.Config, logger *slog.Logger)
}
readiness := newReadiness(healthChecker, cache, storage)
healthHandler := newHealthHandler(readiness, config2)
handler := v1.NewHandler(healthHandler)
metrics := prometheus.New()
handler, err := httpadapter.NewRouter(healthHandler, metrics, logger)
httpHandler, err := httpadapter.NewRouter(healthHandler, handler, metrics, logger)
if err != nil {
cleanup3()
cleanup2()
cleanup()
return nil, nil, err
}
application := NewApplication(config2, handler, metrics, logger)
application := NewApplication(config2, httpHandler, metrics, logger)
return application, func() {
cleanup3()
cleanup2()