From b445bb297fb710c1c9b943dbf4ceb76b3fb6ff5c Mon Sep 17 00:00:00 2001 From: "n.nakhostin" Date: Tue, 9 Sep 2025 14:53:07 +0330 Subject: [PATCH] Remove Authentication Middleware from Admin Flags Routes - Eliminated the authentication middleware from the admin flags routes, simplifying access to flag-related endpoints for administrative purposes. This change enhances the usability of the admin interface while maintaining the integrity of other secured routes. --- cmd/web/router/routes.go | 1 - 1 file changed, 1 deletion(-) diff --git a/cmd/web/router/routes.go b/cmd/web/router/routes.go index 41741d0..66c1d4f 100644 --- a/cmd/web/router/routes.go +++ b/cmd/web/router/routes.go @@ -125,7 +125,6 @@ func RegisterAdminRoutes(e *echo.Echo, userHandler *user.Handler, companyHandler // Admin Flags Routes flagsGP := adminV1.Group("/flags") { - flagsGP.Use(userHandler.AuthMiddleware()) flagsGP.GET("/:country_code", flagHandler.AdminGetFlagSVG) } }