MSP-5358 reimplement

This commit is contained in:
komissarovyv committed 2025-06-30 19:14:05 +03:00
1 parent e56a2b829f
commit 0c2bcc6cfe
8 files changed
+84 -30

No files matched your search

+3 -2
View File
@@ -120,13 +120,14 @@ func (l Locator) Handler(config conf.Remote, locations []conf.Location, redisCli
)
}
entrypoint := middleware.Entrypoint(
config.Http.MaxRequestBodySizeInMb*1024*1024, //nolint:mnd,gomnd
config.Http.MaxRequestBodySizeInMb*1024*1024, //nolint:mnd
handler,
l.logger,
middleware.EntryPointConfig{
WithPrefix: location.WithPrefix,
PathPrefix: location.PathPrefix,
},
l.routes,
l.logger,
)
mux.PathPrefix(location.PathPrefix).Handler(entrypoint)
}