This commit is contained in:
Vladislav Kunetskiy
2026-11-05 20:33:41 +03:00
parent edc2a405ee
commit 147fed2d97
194 changed files with 10062 additions and 3831 deletions
+3 -2
View File
@@ -20,7 +20,6 @@ func NewRouter(
oas.WithErrorHandler(newErrorHandler(log)),
oas.WithNotFound(newNotFoundHandler(log)),
oas.WithMethodNotAllowed(newMethodNotAllowedHandler(log)),
oas.WithMiddleware(loggingMiddleware(log)),
)
if err != nil {
return nil, err
@@ -38,7 +37,9 @@ func NewRouter(
mux.Handle("/", server)
limited := bodyLimitMiddleware(maxBodyBytes, maxUploadBytes, log, mux)
return requestIDMiddleware(
instanceIDMiddleware(InstanceID(), bodyLimitMiddleware(maxBodyBytes, maxUploadBytes, log, mux)),
instanceIDMiddleware(InstanceID(), telemetryMiddleware(log, server, mux, limited)),
), nil
}