Objective: Develop a public endpoint to retrieve reward information, accessible without user authentication.
Requirements:
[x] Create a public-facing GET endpoint for fetching rewards.
[x] Implement reward retrieval logic that includes relevant details like reward title, description, and associated location information.
[x] Optimize the data retrieval using Prisma's selective include or select queries to efficiently fetch necessary data while excluding sensitive information.
Acceptance Criteria:
Public users can fetch reward details without needing to authenticate.
The API endpoint returns only non-sensitive reward and associated location data, ensuring privacy and security.
The retrieval process is optimized to handle potentially large datasets efficiently, ensuring good performance.
Resloves #80
Objective: Develop a public endpoint to retrieve reward information, accessible without user authentication.
Requirements:
include
orselect
queries to efficiently fetch necessary data while excluding sensitive information.Acceptance Criteria: