expo-api-routes

Implement Expo Router API routes on EAS Hosting with server-side handlers.

Updated Mar 27, 2026
One-click install
npx skills add https://github.com/erenisiklar/Pusula --skill expo-api-routes-erenisiklar
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: expo-api-routes
Source: https://github.com/erenisiklar/Pusula/tree/main/.claude/skills/expo-api-routes
Command: npx skills add https://github.com/erenisiklar/Pusula --skill expo-api-routes-erenisiklar

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Developers need structured guidance to implement server-side API routes in Expo Router when hosting with EAS, ensuring secrets stay on the server, proper routing patterns, and reliable deployment.

Core Features & Use Cases

  • File structure and routing patterns for app/api, including basic and dynamic routes.
  • Environment variable usage, CORS handling, error handling, and testing/deployment guidance for EAS Hosting.
  • Guidance on proxying external APIs and implementing authentication middleware for secure serverside logic.

Quick Start

Create a basic API route at app/api/hello+api.ts and start the local Expo server to test it.

Frequently Asked Questions about expo-api-routes

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create server-side API routes with Expo Router?▼

You create server-side API routes by defining files in the app/api directory, such as app/api/hello+api.ts, to handle HTTP methods like GET, POST, PUT, and DELETE while keeping secrets on the server.

Can I deploy Expo API routes to Cloudflare Workers using EAS Hosting?▼

Yes, Expo API routes can be deployed to Cloudflare Workers via EAS Hosting, utilizing structured deployment workflows that support server-side routing and environment variable management.

What is the file structure for dynamic API routes in Expo Router?▼

Dynamic API routes in Expo Router use specific file structure patterns within the app/api directory to handle dynamic URL segments, enabling flexible request parsing and HTTP method handling for varying route parameters.

How do I test Expo API routes locally before EAS deployment?▼

You test Expo API routes locally by starting the local Expo server after creating a route file like app/api/hello+api.ts, allowing you to verify server-side logic, CORS handling, and request parsing before deployment.

How do you handle authentication and CORS in Expo API routes?▼

Authentication and CORS in Expo API routes are handled by implementing authentication middleware for secure serverside logic and configuring CORS to control cross-origin requests, ensuring secure API access.