Goal
Editor support for API routes and server-side data fetching.
Features
- API route index — Workspace symbol provider listing all
src/server/routes/ handlers with HTTP method + path
- API route path completions — In
HttpClient.get('/api/...') calls, suggest available API routes from the file system
- Server load type linking — When using
injectLoad(), provide a quick link to the corresponding .server.ts file
Key files
- New:
packages/language-server/src/plugins/server.ts
Context
The alpha branch has split content routing into @analogjs/router/content. Server-side data fetching uses .server.ts files with load() functions paired to .page.ts files.
Depends on #8
Goal
Editor support for API routes and server-side data fetching.
Features
src/server/routes/handlers with HTTP method + pathHttpClient.get('/api/...')calls, suggest available API routes from the file systeminjectLoad(), provide a quick link to the corresponding.server.tsfileKey files
packages/language-server/src/plugins/server.tsContext
The alpha branch has split content routing into
@analogjs/router/content. Server-side data fetching uses.server.tsfiles withload()functions paired to.page.tsfiles.Depends on #8