aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/invoice/router.go
diff options
context:
space:
mode:
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)