feature: Customizable external rest address

This commit is contained in:
jamesread
2022-04-05 11:06:41 +01:00
parent 63068dfdea
commit a725b377cc
3 changed files with 6 additions and 10 deletions
+3 -2
View File
@@ -8,9 +8,10 @@ import (
// for both of them.
func StartServers(cfg *config.Config) {
go startWebUIServer(cfg)
go startRestAPIServer(cfg)
if cfg.UseSingleHTTPFrontend {
StartSingleHTTPFrontend(cfg)
go StartSingleHTTPFrontend(cfg)
}
startRestAPIServer(cfg)
}