aboutsummaryrefslogtreecommitdiff
path: root/server/router/invoice.go
diff options
context:
space:
mode:
Diffstat (limited to 'server/router/invoice.go')
-rw-r--r--server/router/invoice.go3
1 files changed, 1 insertions, 2 deletions
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)