diff --git a/cmd/http-server/main.go b/cmd/http-server/main.go index 00df2ed..fdbedb3 100644 --- a/cmd/http-server/main.go +++ b/cmd/http-server/main.go @@ -36,9 +36,9 @@ func main() { docs.SwaggerInfo.BasePath = "/api" // Routes defined in the routes package - routes := r.Group("/api") + api := r.Group("/api") { - userRoutes := routes.Group("/user") + userRoutes := api.Group("/user") { userRoutes.POST("/register", handlers.UserRegister) userRoutes.POST("/login", handlers.UserLogin)