Implement a new admin route get_boost_winners that retrieves the list of winners for a specific boost. This route will allow admin users to fetch the winners based on the boost_id provided. It should be secured using the existing authentication middleware to ensure only authorized admin users can access this information.
Proposed Actions 🛠️
Here’s a checklist of actions to follow for resolving this issue:
Fork and Create Branch:
Fork the repository and create a new branch using the issue number:
git checkout -b fix-[issue-number]
Implement Changes:
Create the Route: add a new handler in src/endpoints/admin/quest_boost: get_boost_winners.rs
To keep our workflow smooth, please make sure you follow these guidelines:
Assignment: Don't create a pull request if you weren’t assigned to this issue.
Timeframe: Complete the task within 3 business days.
Closing the Issue: In your PR description, close the issue by writing Close #[issue_id].
Review Process:
Once you've submitted your PR, change the label to "ready for review".
If changes are requested, address them and then update the label back to "ready for review" once done.
Testing: Test your PR locally before pushing, and verify that tests and build are working after pushing.
Thank you for your contribution 🙏
⚠️ WARNING: Failure to follow the requirements above may result in being added to the OnlyDust blacklist, affecting your ability to receive future rewards.
Description 📹
Implement a new admin route
get_boost_winners
that retrieves the list of winners for a specific boost. This route will allow admin users to fetch the winners based on theboost_id
provided. It should be secured using the existing authentication middleware to ensure only authorized admin users can access this information.Proposed Actions 🛠️
Here’s a checklist of actions to follow for resolving this issue:
Fork and Create Branch:
Fork the repository and create a new branch using the issue number:
Implement Changes:
Create the Route: add a new handler in
src/endpoints/admin/quest_boost
:get_boost_winners.rs
Define Request Parameters:
Implement the Handler Logic, which should look something like that:
Run Tests and Commit Changes:
Testing:
boost_id
values.auth_middleware
.Commit Changes:
Required 📋
To keep our workflow smooth, please make sure you follow these guidelines:
Close #[issue_id]
.Thank you for your contribution 🙏
⚠️ WARNING: Failure to follow the requirements above may result in being added to the OnlyDust blacklist, affecting your ability to receive future rewards.