Fix ticket status request erroring on json unmarshal

This commit is contained in:
vctt94 2020-07-13 12:09:02 -03:00 committed by David Hill
parent 2f8d2ab53d
commit 6f2a069047

View File

@ -191,7 +191,7 @@ func router(debugMode bool, cookieSecret []byte, dcrd rpc.DcrdConnect, wallets r
api := router.Group("/api") api := router.Group("/api")
api.GET("/vspinfo", vspInfo) api.GET("/vspinfo", vspInfo)
api.POST("/feeaddress", withDcrdClient(dcrd), broadcastTicket(), vspAuth(), feeAddress) 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("/payfee", withDcrdClient(dcrd), vspAuth(), payFee)
api.POST("/setvotechoices", withDcrdClient(dcrd), withWalletClients(wallets), vspAuth(), setVoteChoices) api.POST("/setvotechoices", withDcrdClient(dcrd), withWalletClients(wallets), vspAuth(), setVoteChoices)