What problem does it solve?
Expo apps often require server-side API routes to handle secrets, data validation, and proxying requests. This Skill provides a structured approach to building, testing, and deploying API routes within the Expo Router ecosystem on EAS Hosting, enabling secure server operations without exposing credentials to the client.
Core Features & Use Cases
- API Route structure: Organize server endpoints under app/api with +api.ts conventions for deterministic routing.
- Security & Validation: Manage server-side secrets, validate input, and handle errors with robust patterns.
- Deployment & hosting: End-to-end guidance for local testing and deploying API routes to EAS Hosting (Cloudflare Workers) with environment variables and CORS considerations.
- Dynamic Routing & Proxies: Support dynamic routes, middleware-like patterns, and proxy external services when needed.
Quick Start
Start by creating a new API route under app/api/hello+api.ts and implement a simple GET handler.