User points can be found at /points/me. me serves as a special ID that will fetch the points for the currently signed in user.
Permissions
Officers can see points for any user, whereas users can only see their own points. This is implemented awkwardly by checking the roles of the user and the :id passed in. If all else fails, the endpoint is protected correctly anyways :)
Seeing points for other users is currently implemented via manually editing the URL :)
Overview
User points can be found at
/points/me
.me
serves as a special ID that will fetch the points for the currently signed in user.Permissions
Officers can see points for any user, whereas users can only see their own points. This is implemented awkwardly by checking the roles of the user and the :id passed in. If all else fails, the endpoint is protected correctly anyways :)
Seeing points for other users is currently implemented via manually editing the URL :)