diff options
author | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2023-12-04 14:55:24 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2023-12-04 14:55:24 +0530 |
commit | bb088225a27d04c8237bfcdc7658a5564e838082 (patch) | |
tree | 9f79491a6b3f136863d0a92683fb4dd35ba4c612 /invoice/router.go | |
parent | a6087d0a4f177973b9d27e544f85736d90039089 (diff) |
added endpoint to get an invoice's items onlyv0.4.0
Diffstat (limited to 'invoice/router.go')
-rw-r--r-- | invoice/router.go | 1 |
1 files changed, 1 insertions, 0 deletions
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) } |