Question · Vibe coding with Claude Code course · Module 14: Pinterest clone
Quiz: The GET route for one pin
How do you add a GET /api/pins/[id] route in the App Router?
Answer options
- By creating a page component app/api/pins/[id]/page.tsx
- By adding the route to next.config.ts
- By exporting a GET function from the file app/api/pins/[id]/route.ts
- By adding a GET function to lib/pinStore.ts
You can check the correct answer by solving this task in the CodeWorlds game.