From 85f8972d5e3ac3ed069b7b0c48ded169916310d4 Mon Sep 17 00:00:00 2001 From: qowevisa Date: Sun, 10 Nov 2024 08:25:44 +0200 Subject: [PATCH] Add route to CardGetAll handler --- cmd/http-server/main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/http-server/main.go b/cmd/http-server/main.go index 73939cb..774b98c 100644 --- a/cmd/http-server/main.go +++ b/cmd/http-server/main.go @@ -54,6 +54,7 @@ func main() { { cardsRoutes.POST("/add", handlers.CardAdd) cardsRoutes.GET("/:id", handlers.CardGetId) + cardsRoutes.GET("/all", handlers.CardGetAll) cardsRoutes.PUT("/edit/:id", handlers.CardPutId) cardsRoutes.DELETE("/delete/:id", handlers.CardDeleteId) }