aboutsummaryrefslogtreecommitdiff
path: root/invoice/router.go
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.com>2023-12-04 01:46:17 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.com>2023-12-04 01:46:17 +0530
commita6087d0a4f177973b9d27e544f85736d90039089 (patch)
tree7f1edc54a6a1175552cbfbabf32283f37aa8bf32 /invoice/router.go
parentf169571cffeb3ac0404d56ac01ece90c33338113 (diff)
added API route to get drafts onlyv0.3.0
Diffstat (limited to 'invoice/router.go')
-rw-r--r--invoice/router.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/invoice/router.go b/invoice/router.go
index 8e0a0ca..7631cb9 100644
--- a/invoice/router.go
+++ b/invoice/router.go
@@ -25,6 +25,7 @@ func Routes(route *gin.RouterGroup) {
g := route.Group("/invoice")
{
g.GET("/", handleGetInvoices)
+ g.GET("/draft", handleGetDrafts)
g.GET("/:id", handleGetSingleInvoice)
g.POST("/", handleSaveInvoice)
g.DELETE("/:id", handleDelInvoice)