Replies: 1 comment
|
I do not see an API endpoint for “all users + points count” in the current routes. The public API routes under get 'users/me', to: 'users#me'
resources :points
resources :stats, only: :indexBut those are scoped to the authenticated API user. The page you are referring to seems to be the web admin/settings UI instead: resources :users, only: %i[index show create destroy edit update]and the view displays: user.points_count.to_iSo for a self-hosted dashboard today, the practical options are: select email, points_count
from users
order by points_count desc;or add a small admin-only API endpoint that returns |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hello,
Do you know if there is an api endpoint from which we can retreive all users and their number of points, like in the "users" section in the admin setting page ?
This is just for stats display in homepage
All reactions