aboutsummaryrefslogtreecommitdiff
path: root/invoice/router.go
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.com>2023-10-09 22:11:16 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.com>2023-10-09 22:11:16 +0530
commit48845b9e703756471a98f8b1f1edaa2313763df4 (patch)
tree1883095a68148bad0d0e5daff818616e5137a3c3 /invoice/router.go
parent1924bfca2439829253df3598481034e5c586e3e2 (diff)
checking user while adding and removing invoice itemsv0.0.13
Diffstat (limited to 'invoice/router.go')
-rw-r--r--invoice/router.go2
1 files changed, 1 insertions, 1 deletions
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)
}
}