Problem
markets featured fields exist but there's no clean admin endpoint to set featured order/expiry with validation.
Requirements
- Admin endpoint to set featured flag, order, and expiry with bounds checks.
- Auto-unfeature past-expiry markets on read.
- Tests: setting/clearing featured fields; expiry auto-unfeatures.
Acceptance Criteria
- Admins manage featured markets with validated ordering and expiry. Covered by tests.
Files
backend/src/markets/markets.controller.ts
backend/src/admin
backend/src/migrations/1774821713259-AddFeaturedFieldsToMarket.ts
Problem
marketsfeatured fields exist but there's no clean admin endpoint to set featured order/expiry with validation.Requirements
Acceptance Criteria
Files
backend/src/markets/markets.controller.tsbackend/src/adminbackend/src/migrations/1774821713259-AddFeaturedFieldsToMarket.ts