believethehype / nostdress

Lightning addresses server based on satdress. Adapted to work with Nostr features (NIP05, NIP57)
MIT License
46 stars 14 forks source link

Feature request: List all registered users #24

Closed hazrulnizam closed 1 year ago

hazrulnizam commented 1 year ago

Is there an easy way to query and list all registered users?

I understand the database backend is using pebble but as a non-programmer it is a bit difficult to understand how to maneuver around the key-value data. Is there a client or CLI we can use to query the db? Or an API endpoint perhaps?

Thanks, you are doing a great job with this fork. Appreciate it.

believethehype commented 1 year ago

Hey, I added a new api command {domain}/api/listUsers/ where you can list all existing users in the database. This will only work when the ALLOW_API is set to true. (version 0.9.1.5)

hazrulnizam commented 1 year ago

Amazing! Thank you!