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.
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user