What problem does it solve? Building server-side logic for Wix CLI apps requires knowing the file-based routing conventions, Astro endpoint patterns, and Wix-specific deployment workflow. This Skill provides the exact patterns for creating backend HTTP endpoints without guesswork. ## Core Features & Use Cases - File-Based Endpoint Creation: Generates TypeScript handlers in src/pages/api/ with support for dynamic routes like [id].ts and all HTTP methods (GET, POST, PUT, DELETE). - Request & Response Patterns: Provides typed handlers using APIRoute from Astro, covering path parameters, query strings, JSON bodies, headers, and proper status codes. - Frontend Integration: Shows how to call endpoints from frontend components using Wix's httpClient.fetchWithAuth(). - Use Case: A developer building a Wix app needs a REST endpoint to handle form submissions. This Skill generates a validated POST handler at src/pages/api/submissions.ts with error handling and correct response codes. ## Quick Start Create a backend HTTP endpoint for my Wix CLI app that accepts POST requests with JSON data at /api/contact.