Skip to content

Phase 2: Server-Side Features #9

@brandonroberts

Description

@brandonroberts

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions