From b67cb2d89ccda1011d04c49a45de66e0182f971c Mon Sep 17 00:00:00 2001 From: Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> Date: Thu, 31 Oct 2024 23:12:12 +0300 Subject: backend: remove auth check for viewing user page --- backend/api/routes.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/api/routes.go b/backend/api/routes.go index c3124f9..690f844 100644 --- a/backend/api/routes.go +++ b/backend/api/routes.go @@ -25,7 +25,7 @@ func InitRoutes(router *gin.Engine) { v1.GET("/profile", RateLimit, IsAuthenticated, handlers.Profile) v1.PUT("/profile", IsAuthenticated, handlers.UpdateCountryCode) v1.POST("/profile", IsAuthenticated, handlers.UpdateUser) - v1.GET("/users/:userid", IsAuthenticated, handlers.FetchUser) + v1.GET("/users/:userid", handlers.FetchUser) // Maps // - Summary v1.GET("/maps/:mapid/summary", RateLimit, handlers.FetchMapSummary) -- cgit v1.2.3