sync: 0.7.0 from main (3f0d10f172101035f4e0f736695e1700ee1ec967)
This commit is contained in:
1 parent
182a719053
commit
fdf612350a
34 files changed
+2032
-430
No files matched your search
@@ -59,7 +59,6 @@ import (
|
||||
server_handler "github.com/EvolutionAPI/evolution-go/pkg/server/handler"
|
||||
storage_interfaces "github.com/EvolutionAPI/evolution-go/pkg/storage/interfaces"
|
||||
minio_storage "github.com/EvolutionAPI/evolution-go/pkg/storage/minio"
|
||||
"github.com/EvolutionAPI/evolution-go/pkg/telemetry"
|
||||
user_handler "github.com/EvolutionAPI/evolution-go/pkg/user/handler"
|
||||
user_service "github.com/EvolutionAPI/evolution-go/pkg/user/service"
|
||||
whatsmeow_service "github.com/EvolutionAPI/evolution-go/pkg/whatsmeow/service"
|
||||
@@ -200,8 +199,6 @@ func setupRouter(db *gorm.DB, authDB *sql.DB, sqliteDB *sql.DB, config *config.C
|
||||
// NOVO: PollHandler usando PollService já inicializado no whatsmeowService (evita dupla inicialização)
|
||||
pollHandler := poll_handler.NewPollHandler(whatsmeowService.GetPollService(), loggerWrapper)
|
||||
|
||||
telemetry := telemetry.NewTelemetryService()
|
||||
|
||||
r := gin.Default()
|
||||
|
||||
// CORS middleware — must be before everything else
|
||||
@@ -218,8 +215,6 @@ func setupRouter(db *gorm.DB, authDB *sql.DB, sqliteDB *sql.DB, config *config.C
|
||||
c.Next()
|
||||
})
|
||||
|
||||
r.Use(telemetry.TelemetryMiddleware())
|
||||
|
||||
r.Use(core.GateMiddleware(runtimeCtx))
|
||||
|
||||
// License routes (always accessible, even without license)
|
||||
|
||||
Reference in new issue
Block a user