Add public GET /v1/whitelist/pubkeys for active subscriber pubkeys

Expose JSON array of hex pubkeys backed by ListActivePubkeys query.
Includes OpenAPI documentation and integration tests.

Made-with: Love
This commit is contained in:
2026-04-29 06:45:44 +00:00
parent a01797e9b2
commit 611ef5fc4a
5 changed files with 88 additions and 0 deletions

View File

@@ -65,6 +65,7 @@ func NewServer(d Deps) *http.Server {
r.Route("/v1", func(r chi.Router) {
r.Get("/pricing", pricing.Handle)
r.Get("/whitelist/pubkeys", users.ListWhitelistedPubkeys)
r.Get("/users/{pubkey}", users.Get)
r.Get("/usernames/{name}/available", usernames.Available)
if d.Invoices != nil {