auth check removed from logout

This commit is contained in:
nquidox 2025-09-10 22:50:07 +03:00
parent 96e6523d46
commit a3151ed0b5

View file

@ -36,7 +36,7 @@ func (h *Handler) RegisterRoutes(r *gin.RouterGroup, authMW gin.HandlerFunc) {
authGroup := userGroup.Group("/auth") authGroup := userGroup.Group("/auth")
authGroup.POST("/login", h.controller.login) authGroup.POST("/login", h.controller.login)
authGroup.POST("/logout", authMW, h.controller.logout) authGroup.POST("/logout", h.controller.logout)
authGroup.POST("/refresh", h.controller.refresh) authGroup.POST("/refresh", h.controller.refresh)
} }