stakwork / sphinx-tribes

Backend for sphinx tribes and bounties. The bounty platform pays out in bitcoin. Sign up with Sphinx Chat, complete a bounty, and earn bitcoin! Go to our website for available bounties.
https://community.sphinx.chat/bounties
33 stars 60 forks source link

GET tribes for admin #336

Open Evanfeenstra opened 1 year ago

Evanfeenstra commented 1 year ago

@omoniyi24

Add a route to get all tribes for an admin pubkey

GET /tribes_for_admin/{admin_pubkey}

And return an array of tribes filtered by the admin_pubkey

omoniyi24 commented 1 year ago

Not sure, just wanted to know if there's a flag to uniquely identify a tribe's admin. Checked person entity, can't see any

Evanfeenstra commented 1 year ago

@omoniyi24 This doesn't have anything to do with the Person entity. The Tribe entity has a admin_pubkey on it, that is all you need