diff --git a/server/system/rest/apigw_route.go b/server/system/rest/apigw_route.go index 6a2592caa..323ae5d9e 100644 --- a/server/system/rest/apigw_route.go +++ b/server/system/rest/apigw_route.go @@ -112,6 +112,7 @@ func (ctrl *ApigwRoute) Update(ctx context.Context, r *request.ApigwRouteUpdate) Method: r.Method, Group: r.Group, Enabled: r.Enabled, + Meta: r.Meta, } ) diff --git a/server/system/types/apigw_route.go b/server/system/types/apigw_route.go index 61fc6584d..ec38497fc 100644 --- a/server/system/types/apigw_route.go +++ b/server/system/types/apigw_route.go @@ -3,9 +3,10 @@ package types import ( "database/sql/driver" "encoding/json" - "github.com/cortezaproject/corteza/server/pkg/sql" "time" + "github.com/cortezaproject/corteza/server/pkg/sql" + "github.com/cortezaproject/corteza/server/pkg/filter" ) @@ -27,8 +28,9 @@ type ( } ApigwRouteMeta struct { - Debug bool `json:"debug"` - Async bool `json:"async"` + Debug bool `json:"debug"` + Async bool `json:"async"` + Desc string `json:"description"` } ApigwRouteFilter struct {