MSP-2684 Add entrypoint config struct

This commit is contained in:
Kirill Ryabov committed 2024-01-22 21:17:01 +07:00
1 parent 6683d2dcd0
commit f6dbff900b
2 files changed
+12 -5

No files matched your search

+4 -2
View File
@@ -115,8 +115,10 @@ func (l Locator) Handler(config conf.Remote, locations []conf.Location, redisCli
config.Http.MaxRequestBodySizeInMb*1024*1024, //nolint:gomnd
handler,
l.logger,
location.PathPrefix,
location.WithPrefix,
middleware.EntryPointConfig{
WithPrefix: location.WithPrefix,
PathPrefix: location.PathPrefix,
},
)
mux.PathPrefix(location.PathPrefix).Handler(entrypoint)
}