Skip to content

Commit 27aff16

Browse files
Fixed controller
1 parent 2b285b0 commit 27aff16

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

internal/controller/controller.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ func (controller *Controller) setupDatabase() error {
131131

132132
mongo.LoadComponent()
133133

134-
log.Info("github.com/COSSAS/soarca API Trying to start")
134+
log.Info("SOARCA API Trying to start")
135135
uri := os.Getenv("MONGODB_URI")
136136
username := os.Getenv("DB_USERNAME")
137137
password := os.Getenv("DB_PASSWORD")
@@ -193,7 +193,7 @@ func Initialize() error {
193193

194194
func initializeCore(app *gin.Engine) error {
195195

196-
origins := strings.Split(strings.ReplaceAll(utils.GetEnv("github.com/COSSAS/soarca_ALLOWED_ORIGINS", "*"), " ", ""), ",")
196+
origins := strings.Split(strings.ReplaceAll(utils.GetEnv("SOARCA_ALLOWED_ORIGINS", "*"), " ", ""), ",")
197197

198198
routes.Cors(app, origins)
199199

0 commit comments

Comments
 (0)