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: Define REST API routes by placing TypeScript files in src/pages/api/, with support for dynamic route parameters like [id].ts. - Full HTTP Method Support: Implement GET, POST, PUT, PATCH, and DELETE handlers typed with Astro's APIRoute, including request body parsing, query parameters, and headers. - Standardized Responses: Return proper Response objects with correct status codes (200, 201, 204, 400, 404, 500) and JSON content types. - Use Case: You need a backend endpoint that receives form submissions from your Wix app's frontend, validates the payload, and stores it server-side. This Skill generates the endpoint file and shows how to call it from the frontend using httpClient.fetchWithAuth(). ## Quick Start Create a backend HTTP endpoint in my Wix CLI app that accepts POST requests with JSON data at /api/submissions.