Objective
Replace the hardcoded artwork array on the home page with real data from the backend. Implement the GET /api/artworks endpoint and connect it to the frontend.
Tasks
Acceptance Criteria
- ✅ GET /api/artworks returns all approved artworks
- ✅ Home page fetches data on load
- ✅ Carousel displays real artwork from backend
- ✅ Masonry gallery displays real artwork from backend
- ✅ Author information displays correctly
- ✅ Loading and empty states work
- ✅ No hardcoded artwork data remains
Objective
Replace the hardcoded artwork array on the home page with real data from the backend. Implement the GET /api/artworks endpoint and connect it to the frontend.
Tasks
Implement GET /api/artworks (
/app/api/artworks/route.ts):Update Home Page (
/app/page.tsx):const artwork = [...]array/api/artworkson mountTest:
Acceptance Criteria