Astro Guideline: API — Use API routes for endpoints. Description: Server endpoints in pages/api. Do: pages/api/[endpoint].ts for APIs. Don't: External API for simple endpoints. Good Example: pages/api/posts.json.ts. Bad Example: Separate Express server. Severity: Medium. Docs: https://docs.astro.build/en/guides/endpoints/.