Files
OliveTin/service/internal/httpservers/httpServer.go
T
2025-08-03 22:10:51 +01:00

17 lines
397 B
Go

package httpservers
import (
config "github.com/OliveTin/OliveTin/internal/config"
"github.com/OliveTin/OliveTin/internal/executor"
)
// StartServers will start 3 HTTP servers. The WebUI, the Rest API, and a proxy
// for both of them.
func StartServers(cfg *config.Config, ex *executor.Executor) {
if cfg.Prometheus.Enabled {
go StartPrometheus(cfg)
}
StartSingleHTTPFrontend(cfg, ex)
}