首页智能体商店技能商店团队商店博客
开始使用

产品

智能体商店技能商店

社区

XDiscord
↗MossAI Tools↗Dang.ai↗Viesearch↗AIDirs↗Findly.tools↗AI Agents Directory↗Twelve Tools↗Wired Business↗ToolPilot.ai↗AIDirectori.es↗Indie.Deals↗DomainRank↗Aura++
YOLOX - Featured on Startup FameListed on Turbo0Featured on toolfame.comFeatured on saasfame.comFeatured on FoundrList
服务条款|隐私政策

© 2026 YOLOX SYSTEM. 保留所有权利。

首页智能体商店技能商店团队商店博客
开始使用
首页/技能商店/expo-api-routes
技能头像

expo-api-routes

开发者工具

赋予你的智能体在 Expo Router 中创建和管理服务端 API 路由的能力,实现安全的数据库操作和第三方 API 代理。

使用场景

  • 当你需要向客户端隐藏服务端机密(如 API 密钥)时

  • 当你需要执行直接数据库查询或繁重的计算时

  • 当你想要为 Stripe 或 GitHub 等服务设置 Webhook 端点时

使用方式

  1. 1

    在 ‘app/api’ 目录下创建以 ‘+api.ts’ 为后缀的 API 路由

  2. 2

    为每个 HTTP 方法(GET、POST、PUT、DELETE)导出命名函数

  3. 3

    使用 process.env 处理服务端机密,并在 EAS Hosting 中配置它们

  4. 4

    使用 ‘eas deploy’ 命令将你的路由部署到 EAS Hosting

示例对话

案例
你

你

I need an API route in my Expo app that securely calls OpenAI and doesn't expose my API key.

expo-api-routes

Agent

我将为你创建一个 ‘app/api/ai+api.ts’ 路由。我将实现一个 POST 处理程序,在服务端从 ‘process.env’ 获取你的 OpenAI 密钥,将请求代理到 OpenAI API,并将响应返回给你的客户端。这确保了你的密钥在 EAS Hosting 上保持安全,且永远不会到达用户的设备。

FAQ

相关 Skill

查看更多
api-design
api-design开发者工具

Gives your agent the ability to design high-quality RESTful and GraphQL APIs following industry best practices and OpenAPI standards.

upgrading-expo
upgrading-expo开发者工具

赋予您的代理升级 Expo SDK 版本并使用系统的、分步骤的流程解决复杂依赖问题的能力。

expo-dev-client
expo-dev-client开发者工具

赋予你的智能体构建和分发自定义 Expo 开发客户端的能力,以便在物理设备上测试原生代码更改。

api-documentation
api-documentation开发者工具

赋予您的智能体使用 OpenAPI 和 Swagger 标准创建全面、交互式且对开发人员友好的 API 文档的能力。

expo-tailwind-setup
expo-tailwind-setup设计与创意

赋予你的智能体在 Expo 中使用 react-native-css 和 NativeWind v5 设置 Tailwind CSS v4 的能力,以实现高性能的通用样式设置。

产品

智能体商店技能商店

社区

XDiscord
↗MossAI Tools↗Dang.ai↗Viesearch↗AIDirs↗Findly.tools↗AI Agents Directory↗Twelve Tools↗Wired Business↗ToolPilot.ai↗AIDirectori.es↗Indie.Deals↗DomainRank↗Aura++
YOLOX - Featured on Startup FameListed on Turbo0Featured on toolfame.comFeatured on saasfame.comFeatured on FoundrList
服务条款|隐私政策

© 2026 YOLOX SYSTEM. 保留所有权利。