aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/invoice/router.go
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.com>2025-10-11 20:55:48 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.com>2025-10-11 20:55:48 +0530
commitbc154857fb5569d7c1fa9785cc891cb927a6a156 (patch)
tree590c9f6a00a1b97b2ee45cfa5a767558089affe0 /invoice/router.go
parent8a47978ca17d2f251d67d12b0e34fa26bb1e4ace (diff)
removed per-user itemsv0.17.0
Diffstat (limited to 'invoice/router.go')
-rw-r--r--invoice/router.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/invoice/router.go b/invoice/router.go
index febd8fd..f406786 100644
--- a/invoice/router.go
+++ b/invoice/router.go
@@ -24,8 +24,8 @@ import (
func Routes(route *gin.RouterGroup) {
g := route.Group("/invoice")
{
- g.GET("/", handleGetInvoices)
- g.GET("/draft", handleGetDrafts)
+ g.GET("/", handleGetInvoices(false))
+ g.GET("/draft", handleGetInvoices(true))
g.GET("/:id", handleGetSingleInvoice)
g.POST("/", handleSaveInvoice)
g.DELETE("/:id", handleDelInvoice)