From 6f2a069047e2ec59e43bffb180bc155c7c8cd711 Mon Sep 17 00:00:00 2001 From: vctt94 Date: Mon, 13 Jul 2020 12:09:02 -0300 Subject: [PATCH] Fix ticket status request erroring on json unmarshal --- webapi/webapi.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapi/webapi.go b/webapi/webapi.go index 3e604ea..9fffd67 100644 --- a/webapi/webapi.go +++ b/webapi/webapi.go @@ -191,7 +191,7 @@ func router(debugMode bool, cookieSecret []byte, dcrd rpc.DcrdConnect, wallets r api := router.Group("/api") api.GET("/vspinfo", vspInfo) api.POST("/feeaddress", withDcrdClient(dcrd), broadcastTicket(), vspAuth(), feeAddress) - api.GET("/ticketstatus", withDcrdClient(dcrd), vspAuth(), ticketStatus) + api.POST("/ticketstatus", withDcrdClient(dcrd), vspAuth(), ticketStatus) api.POST("/payfee", withDcrdClient(dcrd), vspAuth(), payFee) api.POST("/setvotechoices", withDcrdClient(dcrd), withWalletClients(wallets), vspAuth(), setVoteChoices)