What problem does it solve? Building server-side API endpoints in an Astro SSR application requires knowing the correct file conventions, context object usage, and response patterns, and mistakes lead to broken routes or conflicts with the SPA catch-all page. ## Core Features & Use Cases - API Route Scaffolding: Generate .ts endpoint files in src/pages/api/ exporting typed HTTP method handlers (GET, POST, PUT, DELETE, ALL) that return standard Response objects. - Wix SDK Integration: Wire endpoints to @wix/data, @wix/members, @wix/ecom, and @wix/redirects for CMS queries, member data, and ecommerce operations. - Request Handling Patterns: Read JSON bodies, form data, query parameters, headers, and cookies, plus dynamic and catch-all route parameters. - Use Case: You need a CRUD API for a blog. Ask for posts endpoints and get src/pages/api/posts.ts and src/pages/api/posts/[id].ts backed by the Wix data items API with pagination and 404 handling. ## Quick Start Create a REST API endpoint at /api/products that lists items from the Wix products collection with limit and skip pagination.