Extend
This commit is contained in:
5
main.go
5
main.go
@@ -5,6 +5,7 @@ import (
|
||||
_ "oc-catalog/routers"
|
||||
|
||||
oclib "cloud.o-forge.io/core/oc-lib"
|
||||
"cloud.o-forge.io/core/oc-lib/config"
|
||||
"cloud.o-forge.io/core/oc-lib/tools"
|
||||
beego "github.com/beego/beego/v2/server/web"
|
||||
)
|
||||
@@ -22,5 +23,7 @@ func main() {
|
||||
go infrastructure.ListenNATS()
|
||||
go infrastructure.StartDockerScraper()
|
||||
|
||||
beego.Run()
|
||||
if config.GetConfig().IsApi {
|
||||
beego.Run()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user