Add all CRUD Routes for cards

This commit is contained in:
qowevisa 2024-08-03 09:53:50 +03:00
parent 237389d179
commit fd5d283946

View File

@ -39,8 +39,10 @@ func main() {
}
cardsRoutes := api.Group("/card", middleware.AuthMiddleware())
{
cardsRoutes.GET("/:id", handlers.CardGetId)
cardsRoutes.POST("/add", handlers.CardAdd)
cardsRoutes.GET("/:id", handlers.CardGetId)
cardsRoutes.PUT("/edit/:id", handlers.CardPutId)
cardsRoutes.DELETE("/delete/:id", handlers.CardDeleteId)
}
}