Expand description
Controllers for requests starting with /api/v0/main-frontend/code-giveaways
.
Functionsยง
- _add_
routes - Add a route for each controller in this module.
- add_
codes_ ๐to_ code_ giveaway - POST `/api/v0/main-frontend/code-giveaways/:id/codes - Adds new codes to a code giveaway.
- create_
code_ ๐giveaway - POST `/api/v0/main-frontend/code-giveaways - Creates a new code giveaway.
- delete_
code_ ๐giveaway_ code - DELETE `/api/v0/main-frontend/code-giveaways/:id/codes/:code_id - Deletes a code giveaway code.
- get_
code_ ๐giveaway_ by_ id - GET `/api/v0/main-frontend/code-giveaways/:id - Gets a code giveaway by ID.
- get_
code_ ๐giveaways_ by_ course - GET
/api/v0/main-frontend/code-giveaways/by-course/:course_id
- Returns code giveaways for a course. - get_
codes_ ๐by_ code_ giveaway_ id - GET `/api/v0/main-frontend/code-giveaways/:id/codes - Gets codes for a code giveaway by ID.
- get_
codes_ ๐by_ code_ giveaway_ id_ csv - GET `/api/v0/main-frontend/code-giveaways/:id/codes/csv - Gets codes for a code giveaway by ID as CSV.