Closed atomisadev closed 6 days ago
@atomisadev all hours you mean, all approved hours?
edit: nvm
maybe return two values on /api/hours/:slackId "total-hours" for total hours worked and "hour-approved" for total approved hours
please bring this up to date with main - the api was changed in #76. alternatively, I can implement this on my own
closing this as all these features (+ more! ✨) have been implemented with #76 & #77
I added a couple new endpoints to the Arcade API as I'm currently working on an app that could use these endpoints. Added endpoints do the following:
/api/activity/:slackId
- gets the current activity of a user, if they're in an activity/api/sessions/:slackId
- gets all the sessions of a user/api/hours/:slackId
- returns all of the hours of a userAnd additionally added ratelimiting to the API endpoints by passing middleware. Let me know if the ratelimit parameters can be modified