vspd/webapi/status.go
2020-05-22 15:09:51 +01:00

24 lines
402 B
Go

package webapi
import (
"time"
"github.com/gin-gonic/gin"
)
// pubKey is the handler for "GET /pubkey".
func pubKey(c *gin.Context) {
sendJSONResponse(pubKeyResponse{
Timestamp: time.Now().Unix(),
PubKey: cfg.PubKey,
}, c)
}
// fee is the handler for "GET /fee".
func fee(c *gin.Context) {
sendJSONResponse(feeResponse{
Timestamp: time.Now().Unix(),
Fee: cfg.VSPFee,
}, c)
}