From bb088225a27d04c8237bfcdc7658a5564e838082 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Mon, 4 Dec 2023 14:55:24 +0530 Subject: added endpoint to get an invoice's items only --- invoice/router.go | 1 + 1 file changed, 1 insertion(+) (limited to 'invoice/router.go') diff --git a/invoice/router.go b/invoice/router.go index 7631cb9..290eacb 100644 --- a/invoice/router.go +++ b/invoice/router.go @@ -29,6 +29,7 @@ func Routes(route *gin.RouterGroup) { g.GET("/:id", handleGetSingleInvoice) g.POST("/", handleSaveInvoice) g.DELETE("/:id", handleDelInvoice) + g.GET("/:id/item", handleGetInvoiceItems) g.POST("/:id/item", addItem) g.DELETE("/item/:id", removeItem) } -- cgit v1.2.3