Create a robust API route handler with validation, error handling, and proper TypeScript types.
Create a Next.js App Router API route handler with the following features:
Endpoint: {{method}} /api/{{endpoint}}
Requirements:
No add-ons yet.
No notes yet.