diff --git a/cmd/http-server/main.go b/cmd/http-server/main.go index fdbedb3..8674fc1 100644 --- a/cmd/http-server/main.go +++ b/cmd/http-server/main.go @@ -43,6 +43,11 @@ func main() { userRoutes.POST("/register", handlers.UserRegister) userRoutes.POST("/login", handlers.UserLogin) } + cardsRoutes := api.Group("/card") + { + cardsRoutes.GET("/:id", handlers.CardGetId) + cardsRoutes.POST("/add", handlers.CardGetId) + } } r.GET("/swagger/*any", ginSwagger.WrapHandler(swaggerFiles.Handler))