mirror of
https://github.com/OliveTin/OliveTin
synced 2026-09-22 01:35:40 +00:00
Single endpoint for web+ui (Issue #4). Migrated to modern protobuf+grpc.
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user