Feature: add custom ui support in API

This commit is contained in:
Dreamacro
2018-12-20 01:29:13 +08:00
parent afc4644dd1
commit a6bbc67afb
3 changed files with 33 additions and 2 deletions

View File

@ -12,6 +12,10 @@ func Parse() error {
return err
}
if cfg.General.ExternalUI != "" {
route.SetUIPath(cfg.General.ExternalUI)
}
if cfg.General.ExternalController != "" {
go route.Start(cfg.General.ExternalController, cfg.General.Secret)
}