From 9678fcb7e933802f1465375c10638d00714b8187 Mon Sep 17 00:00:00 2001 From: Pubudu Gunatilaka Date: Sun, 31 Mar 2024 17:38:02 +0530 Subject: [PATCH] Fix Gin mode in cc --- common-controller/internal/server/server.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common-controller/internal/server/server.go b/common-controller/internal/server/server.go index c9fbed9d5..192aa645b 100644 --- a/common-controller/internal/server/server.go +++ b/common-controller/internal/server/server.go @@ -16,6 +16,8 @@ var applicationKeyMappingMap = make(map[string]ApplicationKeyMapping) // StartInternalServer starts the internal server func StartInternalServer() { + + gin.SetMode(gin.ReleaseMode) r := gin.Default() r.GET("/applications", func(c *gin.Context) { @@ -46,7 +48,6 @@ func StartInternalServer() { } c.JSON(http.StatusOK, ApplicationKeyMappingList{List: applicationKeyMappingList}) }) - gin.SetMode(gin.ReleaseMode) conf := config.ReadConfigs() certPath := conf.CommonController.Keystore.CertPath keyPath := conf.CommonController.Keystore.KeyPath