- API routes are mounts.
apps/web/src/routes/api/{rpc,files,mcp,auth}and the OAuth discovery routes under/.well-knownare now a few lines each: they pass the request to a(request: Request) => Promise<Response>handler from@template-cloudflare/api/<feature>/http, as the billing and assistant routes already did. The session, membership, tenant and storage code they held is inpackages/api(platform/rpc/http.ts,features/files/files.http.ts,features/mcp/mcp.http.ts,features/auth/auth.http.ts), under the backend's lint rules and next to its tests. No URL, status or header changed. (d8fa292) - Three web modules own backend access (W17). Only
platform/rpc/orpc.ts,platform/auth/read-session.server.tsandserver.tsvalue-import the router,auth,dborstorage; 13 web files did before.scripts/web-feature-boundaries.test.mjsfails on any other importer. See web conventions. - A smaller package interface.
@template-cloudflare/apino longer exports./membership,./uploads/service,./documents/lifecycle-pluginand./mcp/{server,context,protocol,guard}; nothing outside the package needs them now. A fork that imported one of them from its own web code moves that code into a<feature>.http.ts.
HTTP edges live in packages/api; web routes only mount
The files gateway, the MCP resource server, OAuth discovery, the RPC handler and the Better Auth handler moved behind request handlers in packages/api. Three web modules own server-side backend access, and a test keeps it that way.
Edit on GitHubDocumentation is in English.