What problem does it solve? Building HTTP API endpoints in a TanStack Start application requires knowing how to attach raw request handlers to file-based routes, parse request bodies, and return proper responses. This Skill provides the patterns for defining server routes with the server property on createFileRoute. ## Core Features & Use Cases - HTTP Method Handlers: Define GET, POST, PUT, and DELETE handlers that receive the raw Request object, route params, and middleware context. - Middleware Support: Apply middleware to all handlers at the route level or per-handler using createHandlers for fine-grained control. - File-Based API Routing: Map files like routes/users/$id.ts and splat routes like routes/file/$.ts to URL paths, with rules to avoid duplicate route path conflicts. - Use Case: You need a /api/users endpoint that accepts JSON POST bodies and returns JSON responses with proper status codes, plus an auth-protected POST handler alongside a public GET handler. ## Quick Start Create a server route at src/routes/api/hello.ts with a GET handler that returns a JSON response using the server property on createFileRoute.