first commit
This commit is contained in:
17
internal/http/handlers/pricing.go
Normal file
17
internal/http/handlers/pricing.go
Normal file
@@ -0,0 +1,17 @@
|
||||
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,
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user