What problem does it solve?
This Skill provides comprehensive guidelines and examples for creating server-side API routes directly within your Expo Router application, enabling you to handle sensitive data, database operations, and external API integrations securely.
Core Features & Use Cases
- Secure Data Handling: Implement server-side logic for API keys, database credentials, and sensitive operations.
- Dynamic Routing: Define routes with parameters to handle specific resources.
- HTTP Method Support: Easily implement GET, POST, PUT, DELETE, and OPTIONS requests.
- Environment Variable Management: Securely manage secrets for local development and production deployment.
- Deployment to EAS Hosting: Deploy your API routes as serverless functions on Cloudflare Workers.
- Use Case: Securely proxy requests to a third-party API (like OpenAI) by embedding your API key in the server-side route, preventing client-side exposure.
Quick Start
Use the expo-api-routes skill to create a GET request handler for the '/api/hello' endpoint.