Add route to CardGetAll handler
This commit is contained in:
parent
7b8405abdd
commit
85f8972d5e
|
@ -54,6 +54,7 @@ func main() {
|
||||||
{
|
{
|
||||||
cardsRoutes.POST("/add", handlers.CardAdd)
|
cardsRoutes.POST("/add", handlers.CardAdd)
|
||||||
cardsRoutes.GET("/:id", handlers.CardGetId)
|
cardsRoutes.GET("/:id", handlers.CardGetId)
|
||||||
|
cardsRoutes.GET("/all", handlers.CardGetAll)
|
||||||
cardsRoutes.PUT("/edit/:id", handlers.CardPutId)
|
cardsRoutes.PUT("/edit/:id", handlers.CardPutId)
|
||||||
cardsRoutes.DELETE("/delete/:id", handlers.CardDeleteId)
|
cardsRoutes.DELETE("/delete/:id", handlers.CardDeleteId)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user