Skip to content

Commit

Permalink
Fix Gin mode in cc
Browse files Browse the repository at this point in the history
  • Loading branch information
pubudu538 committed Mar 31, 2024
1 parent 2e3b3e5 commit 9678fcb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion common-controller/internal/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 9678fcb

Please sign in to comment.