From 6baad020ce5037a90d902c8f41f1f37f52419a10 Mon Sep 17 00:00:00 2001 From: MikunoNaka Date: Mon, 12 Jul 2021 12:14:35 +0530 Subject: Added support for more client details in server --- server/router/invoice.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'server/router/invoice.go') diff --git a/server/router/invoice.go b/server/router/invoice.go index 6544119..865d244 100644 --- a/server/router/invoice.go +++ b/server/router/invoice.go @@ -13,7 +13,6 @@ import ( //"net/http" "fmt" - //"strconv" db "github.com/MikunoNaka/openbills/database" ) @@ -28,7 +27,7 @@ import ( // db.RegisterItem(newItem) // } -func previewInvoice(ctx *gin.Context) { +func registerInvoice(ctx *gin.Context) { var newInvoice db.Invoice ctx.Bind(&newInvoice) fmt.Println(newInvoice) -- cgit v1.2.3