From 1924bfca2439829253df3598481034e5c586e3e2 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Mon, 9 Oct 2023 21:07:20 +0530 Subject: added route to add items to invoice --- invoice/router.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'invoice/router.go') diff --git a/invoice/router.go b/invoice/router.go index 5536466..e231c0d 100644 --- a/invoice/router.go +++ b/invoice/router.go @@ -28,5 +28,7 @@ func Routes(route *gin.RouterGroup) { g.GET("/:id", handleGetSingleInvoice) g.POST("/", handleSaveInvoice) g.DELETE("/:id", handleDelInvoice) + g.POST("/:id/item", addItem) + //g.DELETE("/:invoice_id/item/:item_id", handleDelInvoice) } } -- cgit v1.2.3