#18 · Public JSON endpoint `/api/bounties` for embeddable bounty list
+140 pts awarded
View on GitLab
Description
Context
The /bounties page renders HTML server-side; other surfaces (Signal bot, Irregularpedia, community portal) need a JSON shape. Cleanly separate the data-fetcher from the renderer and expose it as a public read-only endpoint.
Acceptance criteria
- [ ]
GET /api/bountiesreturns{ issues: BountyIssue[], fetched_at, error } - [ ] CORS allowlist matches
PUBLIC_LEADERBOARD_ORIGINS(irregularpedia.org, irregulars.io, etc.) - [ ] Cache headers set so browsers/edge cache for 60s
- [ ] Filtering:
?app=signal-bot,?tier=m,?unclaimed=1query params
Technical hints
- Already-built
fetchBounties(env)inapps/scoreboard/src/api/bounties.tsis the data source - Mirror the CORS pattern from
apps/scoreboard/src/index.ts/api/leaderboardroute
--- *Submit a merge request that says Closes #<this issue iid> in the description. On merge to main, the GitLab webhook will auto-award your bounty + the standard merge_pr (40 pts) to your scoreboard account. Email on commit must match your Authentik email.*
Relevant files
No relevant files linked yet.
Hints
No hints yet.
Activity
- +100 Günther Van der Eecken earned M bounty Jun 14
Comments
Sign in to join the discussion.
No comments yet. Be the first to weigh in.