From eb173ac072361e2d02188284635438c922c55a21 Mon Sep 17 00:00:00 2001 From: mkelvers Date: Thu, 14 May 2026 12:30:06 +0200 Subject: [PATCH] chore: formatting --- internal/auth/middleware/middleware.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/auth/middleware/middleware.go b/internal/auth/middleware/middleware.go index bd7a420..4d2bc62 100644 --- a/internal/auth/middleware/middleware.go +++ b/internal/auth/middleware/middleware.go @@ -10,9 +10,9 @@ import ( func AuthMiddleware(svc domain.AuthService) gin.HandlerFunc { return func(c *gin.Context) { // Allow access to login, logout and static assets without authentication - if c.Request.URL.Path == "/login" || c.Request.URL.Path == "/logout" || - len(c.Request.URL.Path) >= 7 && c.Request.URL.Path[:7] == "/static" || - len(c.Request.URL.Path) >= 5 && c.Request.URL.Path[:5] == "/dist" { + if c.Request.URL.Path == "/login" || c.Request.URL.Path == "/logout" || + len(c.Request.URL.Path) >= 7 && c.Request.URL.Path[:7] == "/static" || + len(c.Request.URL.Path) >= 5 && c.Request.URL.Path[:5] == "/dist" { c.Next() return }