What problem does it solve?
Expo Router API routes with EAS Hosting provide a structured pattern to expose server-side logic and secrets safely from Expo apps, enabling secure data access, webhooks, and integrations without embedding sensitive data in the client.
Core Features & Use Cases
- API route definitions: Create server endpoints under app/api with the +api.ts suffix to implement REST-like handlers.
- HTTP methods & patterns: Support GET, POST, PUT, DELETE, and OPTIONS handlers with proper error handling and status codes.
- Deployment & hosting: Deploy to EAS Hosting (Cloudflare Workers), manage environment variables, and test locally with Expo tooling.
- Dynamic routing & proxies: Implement dynamic routes and proxy external services while preserving client security and data flow.
Quick Start
Create a basic API route at app/api/hello+api.ts and test it locally with the Expo development server.