SKILL

start-server-routes

Use when building raw HTTP endpoints in TanStack Start with the server property — handlers, params, middleware. Do NOT use for internal RPC (start-server-functions).

原文 · 译文尚未补齐

适用对象:对象待分类。自动收录 · 待核查。

原作者说明节选

从固定版本的 SKILL.md 提取,保留原文语言。以下内容属于作者说明,本站尚未验证安装、兼容或运行结果。

查看英文原文

原文涵盖的主题

  • TanStack Start Server Routes
  • Agent Workflow (MANDATORY)
  • Critical Rules (read first)
  • Overview
  • Architecture
  • Reference Guide
  • Concepts
  • Templates

Covers server routes — raw HTTP endpoints defined alongside app routes in src/routes/ using the server property on createFileRoute (from @tanstack/react-router), returning standard Response objects. Targets @tanstack/react-start v1.169.5. Documents the handler context ({ request, params, context, pathname, next }), dynamic ($id) and splat ($) params from the file name, per-handler middleware via createHandlers versus route-wide server.middleware, and how the same file can serve as both a UI route (component) and an API route (server) at once. Critical rules: choose a server route over a server function when the endpoint must be callable from outside the app (webhooks, public REST, cross-origin) — see references/vs-server-functions.md for the decision; exactly one handler file may resolve to a given route path (routes/users.ts, routes/users/index.ts, and routes/users.index.ts all collide on /users); always await request.json()/.text()/.formData(); and handlers must return a Response (or Promise ). Includes a full REST-resource template with params and middleware. Do NOT use this skill for internal type-safe RPC callable only from your own app (use start-server-functions), for reusab

这里只展示节选,请以完整原文和当前要求为准。

来源仓库
Fusengine/claude-plugins
源文件
plugins/tanstack-start-expert/skills/start-server-routes/SKILL.md
固定版本
b9f82810cf3b5e3c4350332ac3ef618d60163cc0
阅读完整原作者说明 ↗

来源与内容状态

本条为自动发现的元数据,尚未完成人工文档核查;适用性与运行结果待核查。

原作者:Fusengine/claude-plugins · 原作者仓库元数据。文档核查:未核查。最近来源检查:2026-11-11T11:01:46.016Z。

分类由名称、说明与路径规则生成,分类不代表已核实适配。

许可与权利归属

MIT。第三方内容及版权归原作者,使用条件以原文为准。

许可原文 ↗

本站没有因同步、复制或用户自报成功而将资源标为运行验证通过。

限制与注意事项

  • 元数据收录不代表本站已经安装、适配、实测或进行安全审查。