From d0a44ff5cfad5d063929426e2420f6f0d55b1dbe Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Tue, 9 Jul 2024 07:58:34 +0530 Subject: added custom fields support --- invoice/router.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'invoice/router.go') diff --git a/invoice/router.go b/invoice/router.go index 290eacb..febd8fd 100644 --- a/invoice/router.go +++ b/invoice/router.go @@ -32,5 +32,9 @@ func Routes(route *gin.RouterGroup) { g.GET("/:id/item", handleGetInvoiceItems) g.POST("/:id/item", addItem) g.DELETE("/item/:id", removeItem) + g.GET("/:id/custom", handleGetInvoiceCustomFields) + g.POST("/:id/custom", addCustomField) + g.DELETE("/custom/:id", removeCustomField) + //g.PUT("/custom/:id", editCustomField) } } -- cgit v1.2.3