vspd/webapi/vspstatus.go
Jamie Holdstock 6a100811f4
Enable pool closure (#80)
* Enable pool closure.

* Move homepage to its own file

* Docs and rename status>info
2020-05-28 07:07:33 +01:00

19 lines
349 B
Go

package webapi
import (
"time"
"github.com/gin-gonic/gin"
)
// vspInfo is the handler for "GET /vspinfo".
func vspInfo(c *gin.Context) {
sendJSONResponse(vspInfoResponse{
Timestamp: time.Now().Unix(),
PubKey: signPubKey,
FeePercentage: cfg.VSPFee,
Network: cfg.NetParams.Name,
VspClosed: cfg.VspClosed,
}, c)
}