mirror of
https://github.com/OliveTin/OliveTin
synced 2026-08-29 22:16:40 +00:00
17 lines
353 B
Go
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)
|
|
}
|
|
}
|