Single endpoint for web+ui (Issue #4). Migrated to modern protobuf+grpc.

This commit is contained in:
jamesread
2021-05-24 22:02:21 +01:00
parent d4e6a7475d
commit 37b9e2d66f
16 changed files with 256 additions and 183 deletions
+16
View File
@@ -0,0 +1,16 @@
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)
}
}