diff options
| author | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2024-07-09 07:58:34 +0530 | 
|---|---|---|
| committer | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2024-07-09 07:58:34 +0530 | 
| commit | d0a44ff5cfad5d063929426e2420f6f0d55b1dbe (patch) | |
| tree | 476ad4ff14e39bed40049b4d1cba296c6d395c1b /invoice/router.go | |
| parent | 908fb4b2b0fd1c31aa8c1cc87f56d490b42aca7a (diff) | |
added custom fields support
Diffstat (limited to 'invoice/router.go')
| -rw-r--r-- | invoice/router.go | 4 | 
1 files changed, 4 insertions, 0 deletions
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)  	}  }  |