Files
OliveTin/internal/httpservers/httpServer.go
T

17 lines
353 B
Go

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