From 352865b4fb9aab5d0a1697bca88987f06d4e913e Mon Sep 17 00:00:00 2001 From: Peter Grlica Date: Mon, 9 Jan 2023 12:04:19 +0100 Subject: [PATCH] Added description to gateway route --- server/system/rest/apigw_route.go | 1 + server/system/types/apigw_route.go | 8 +++++--- 2 files changed, 6 insertions(+), 3 deletions(-) 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 {