Update api.go

This commit is contained in:
mycodedoesnotcompile2 2025-12-13 11:12:49 +00:00 committed by GitHub
parent 3b4c17e744
commit 86823cb2e6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -33,8 +33,7 @@ func RegisterRoutes(ctx context.Context, wg *sync.WaitGroup, engine *html.Engine
Browse: config.Conf.Env == "dev", Browse: config.Conf.Env == "dev",
})) }))
if config.Conf.Proxy != "" if config.Conf.Proxy != "" {
{
app.Use(proxy.Balancer(proxy.Config{ Servers: []string{ config.Conf.Proxy } , })) app.Use(proxy.Balancer(proxy.Config{ Servers: []string{ config.Conf.Proxy } , }))
} }