add(backend) Сделано API под корзину
This commit is contained in:
@@ -48,6 +48,10 @@ func main() {
|
||||
protected.DELETE("/items/:id", handlers.DeleteItem)
|
||||
protected.PATCH("/items/:id", handlers.UpdateItem)
|
||||
protected.POST("/items", handlers.AddItem)
|
||||
protected.GET("/cart/", handlers.GetCart)
|
||||
protected.POST("/cart/", handlers.AddToCart)
|
||||
protected.PATCH("/cart/:id", handlers.UpdateCartItem)
|
||||
protected.DELETE("/cart/:id", handlers.RemoveFromCart)
|
||||
}
|
||||
|
||||
admin := protected.Group("/")
|
||||
|
||||
Reference in New Issue
Block a user