From a6087d0a4f177973b9d27e544f85736d90039089 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Mon, 4 Dec 2023 01:46:17 +0530 Subject: added API route to get drafts only --- invoice/router.go | 1 + 1 file changed, 1 insertion(+) (limited to 'invoice/router.go') 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) -- cgit v1.2.3