diff options
author | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2023-10-09 21:07:20 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2023-10-09 21:07:20 +0530 |
commit | 1924bfca2439829253df3598481034e5c586e3e2 (patch) | |
tree | 6b82a091ae97e1980fe0ff3f3fb3eaa726a6d6ad /invoice/router.go | |
parent | b643f7852f93f73843aa5f52f9b4545321713e10 (diff) |
added route to add items to invoicev0.0.12
Diffstat (limited to 'invoice/router.go')
-rw-r--r-- | invoice/router.go | 2 |
1 files changed, 2 insertions, 0 deletions
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) } } |