feat: replace stdlig flag with pflag by spf13

This commit is contained in:
2026-04-23 22:42:35 +02:00
parent 5e2043d54e
commit 939338477c
5 changed files with 20 additions and 14 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ func KickoffApi(logger *slog.Logger, env bootstrap.Environment, db *gorm.DB) {
r.Use(middleware.SlogMiddleware(logger))
r.Use(gin.Recovery())
if env.AuthenticationEnabled {
if env.Authentication {
slog.Debug("activating authentication middleware") // only log when actually doign the thing it logs to do
r.Use(middleware.AuthMiddleware())
}