What problem does it solve?
This Skill provides comprehensive guidance on creating and deploying serverless API routes within an Expo Router application, enabling developers to build backend functionality directly within their frontend project.
Core Features & Use Cases
- Server-Side Logic: Implement secure server-side operations like handling secrets, database interactions, and third-party API proxies.
- Expo Router Integration: Learn the file structure and conventions for defining API routes using the
+api.ts suffix.
- Deployment: Understand how to deploy these API routes using EAS Hosting and manage environment variables for production.
- Use Case: Securely handle Stripe webhooks or proxy requests to an external AI service by creating API routes in your Expo app.
Quick Start
Create a new API route by adding a file named hello+api.ts inside your app/api/ directory with the content export function GET(request: Request) { return Response.json({ message: "Hello from Expo!" }); }.