From 48845b9e703756471a98f8b1f1edaa2313763df4 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Mon, 9 Oct 2023 22:11:16 +0530 Subject: checking user while adding and removing invoice items --- invoice/router.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'invoice/router.go') diff --git a/invoice/router.go b/invoice/router.go index e231c0d..8e0a0ca 100644 --- a/invoice/router.go +++ b/invoice/router.go @@ -29,6 +29,6 @@ func Routes(route *gin.RouterGroup) { g.POST("/", handleSaveInvoice) g.DELETE("/:id", handleDelInvoice) g.POST("/:id/item", addItem) - //g.DELETE("/:invoice_id/item/:item_id", handleDelInvoice) + g.DELETE("/item/:id", removeItem) } } -- cgit v1.2.3