mirror of
https://github.com/SphericalKat/medium.rip.git
synced 2025-12-18 07:25:58 +00:00
Update api.go
This commit is contained in:
parent
3b4c17e744
commit
86823cb2e6
@ -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 } , }))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user