mirror of
https://github.com/SphericalKat/medium.rip.git
synced 2025-12-17 23:15:58 +00:00
Update api.go
This commit is contained in:
parent
3e95bb581e
commit
7d6e0c0aa8
@ -34,6 +34,7 @@ func RegisterRoutes(ctx context.Context, wg *sync.WaitGroup, engine *html.Engine
|
||||
Browse: config.Conf.Env == "dev",
|
||||
}))
|
||||
|
||||
/*
|
||||
if config.Conf.Proxy != "" {
|
||||
proxy.WithTlsConfig(&tls.Config{ InsecureSkipVerify: true,})
|
||||
app.Use(proxy.Balancer(proxy.Config{
|
||||
@ -58,6 +59,7 @@ func RegisterRoutes(ctx context.Context, wg *sync.WaitGroup, engine *html.Engine
|
||||
}))
|
||||
log.Printf("Using proxy: %s", config.Conf.Proxy)
|
||||
}
|
||||
*/
|
||||
|
||||
routes.RegisterRoutes(app)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user