diff --git a/internal/app/app.go b/internal/app/app.go index bd8fc74..ae93188 100644 --- a/internal/app/app.go +++ b/internal/app/app.go @@ -49,6 +49,7 @@ func newEngine( auditHandler *auditinterfaces.Handler, settingsHandler *settingsinterfaces.Handler, notificationHandler *notificationinterfaces.Handler, + examplePlugin *exampleinterfaces.ExamplePlugin, ) *gin.Engine { ginMode := "release" if cfg.Server.Mode == "debug" || cfg.Server.Mode == "dev" { @@ -77,9 +78,7 @@ func newEngine( settingsinterfaces.SetupRoutes(r, settingsHandler, authMW) notificationinterfaces.SetupRoutes(r, notificationHandler, authMW) - for _, p := range plugin.All() { - p.SetupRoutes(r, authMW) - } + examplePlugin.SetupRoutes(r, authMW) return r }