aboutsummaryrefslogtreecommitdiff
path: root/invoice/router.go
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.com>2024-07-09 07:58:34 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.com>2024-07-09 07:58:34 +0530
commitd0a44ff5cfad5d063929426e2420f6f0d55b1dbe (patch)
tree476ad4ff14e39bed40049b4d1cba296c6d395c1b /invoice/router.go
parent908fb4b2b0fd1c31aa8c1cc87f56d490b42aca7a (diff)
added custom fields supportv0.9.0
Diffstat (limited to 'invoice/router.go')
-rw-r--r--invoice/router.go4
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)
}
}