diff options
author | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2023-12-04 01:46:17 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2023-12-04 01:46:17 +0530 |
commit | a6087d0a4f177973b9d27e544f85736d90039089 (patch) | |
tree | 7f1edc54a6a1175552cbfbabf32283f37aa8bf32 /invoice/router.go | |
parent | f169571cffeb3ac0404d56ac01ece90c33338113 (diff) |
added API route to get drafts onlyv0.3.0
Diffstat (limited to 'invoice/router.go')
-rw-r--r-- | invoice/router.go | 1 |
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) |