Added registry, updated handlers

Updated modules

Added function definition endpoint
This commit is contained in:
Peter Grlica
2021-08-11 17:25:04 +02:00
parent 2388158141
commit 4e43020bf0
18 changed files with 526 additions and 245 deletions
+9
View File
@@ -10,10 +10,13 @@ import (
automationRest "github.com/cortezaproject/corteza-server/automation/rest"
composeRest "github.com/cortezaproject/corteza-server/compose/rest"
"github.com/cortezaproject/corteza-server/compose/service"
"github.com/cortezaproject/corteza-server/docs"
federationRest "github.com/cortezaproject/corteza-server/federation/rest"
"github.com/cortezaproject/corteza-server/pkg/actionlog"
"github.com/cortezaproject/corteza-server/pkg/api/server"
"github.com/cortezaproject/corteza-server/pkg/apigw"
"github.com/cortezaproject/corteza-server/pkg/eventbus"
"github.com/cortezaproject/corteza-server/pkg/logger"
"github.com/cortezaproject/corteza-server/pkg/options"
"github.com/cortezaproject/corteza-server/pkg/webapp"
@@ -104,6 +107,12 @@ func (app *CortezaApp) mountHttpRoutes(r chi.Router) {
r.Route("/federation", federationRest.MountRoutes)
}
// temp api gateway support
{
apigw.Setup(struct{}{}, app.Log, eventbus.Service(), service.DefaultStore)
r.Route("/gateway", apigw.Service().Router(context.Background()))
}
var fullpathDocs = options.CleanBase(ho.BaseUrl, ho.ApiBaseUrl, "docs")
app.Log.Info(
"API docs enabled",