hackclub / hack-hour

Every Hour = More Power. Keep track of each hour of work you get done on your project.
https://hackhour.hackclub.com
12 stars 15 forks source link

Added a couple new endpoints and ratelimiting #66

Closed atomisadev closed 6 days ago

atomisadev commented 1 week ago

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:

And additionally added ratelimiting to the API endpoints by passing middleware. Let me know if the ratelimit parameters can be modified

shashankx86 commented 6 days ago

@atomisadev all hours you mean, all approved hours?

edit: nvm

shashankx86 commented 6 days ago

maybe return two values on /api/hours/:slackId "total-hours" for total hours worked and "hour-approved" for total approved hours

techpixel commented 6 days ago

please bring this up to date with main - the api was changed in #76. alternatively, I can implement this on my own

techpixel commented 6 days ago

closing this as all these features (+ more! ✨) have been implemented with #76 & #77