Back to skills

expo-api-routes

development

API routes in Expo Router let you run server-side code alongside your mobile and web app, using the same file-based routing convention. Routes are defined with a `+api.ts` suffix and deploy to Cloudfl

Setup & Installation

npx skills add https://github.com/expo/expo-api-routes --skill expo-api-routes
or paste the link and ask your coding assistant to install it
https://github.com/expo/expo-api-routes
View on GitHub

What This Skill Does

API routes in Expo Router let you run server-side code alongside your mobile and web app, using the same file-based routing convention. Routes are defined with a `+api.ts` suffix and deploy to Cloudflare Workers via EAS Hosting. Instead of spinning up a separate Express or Next.js server, you get server-side endpoints in the same repo and routing system as your Expo app, deployed automatically with `eas deploy`.

When to use it

  • Working with expo api routes functionality
  • Implementing expo api routes features
  • Debugging expo api routes related issues