From fd5d2839468895380f0246fd5b42652c4966ad3c Mon Sep 17 00:00:00 2001 From: qowevisa Date: Sat, 3 Aug 2024 09:53:50 +0300 Subject: [PATCH] Add all CRUD Routes for cards --- cmd/http-server/main.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/http-server/main.go b/cmd/http-server/main.go index 8e4620d..6031bf2 100644 --- a/cmd/http-server/main.go +++ b/cmd/http-server/main.go @@ -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) } }