18 lines
370 B
Go
18 lines
370 B
Go
package handlers
|
|
|
|
import "net/http"
|
|
|
|
type Pricing struct {
|
|
YearlySats int64
|
|
LifetimeSats int64
|
|
LightningEnabled bool
|
|
}
|
|
|
|
func (h *Pricing) Handle(w http.ResponseWriter, r *http.Request) {
|
|
WriteJSON(w, http.StatusOK, map[string]any{
|
|
"yearly_sats": h.YearlySats,
|
|
"lifetime_sats": h.LifetimeSats,
|
|
"lightning_enabled": h.LightningEnabled,
|
|
})
|
|
}
|