Add cards group of endpoints

This commit is contained in:
qowevisa 2024-08-03 08:16:55 +03:00
parent 2cca30a487
commit 6c2032dd42

View File

@ -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))