Skip to content

refactor: replace all server-side load functions by universal load functions #1699

@nsarrazin

Description

@nsarrazin

We need to replace all the +page.server.ts and +layout.server.ts by +page.ts and +layout.ts. In order to do this, we need to create more routes under src/routes/api with +server.ts GET endpoints, which we can then fetch inside the universal load functions.

The following server-side load functions need to be replaced:

  • src/routes/+layout.server.ts
  • src/routes/assistant/[assistantId]/+page.server.ts
  • src/routes/assistants/+page.server.ts
  • src/routes/conversation/[id]/+page.server.ts
  • src/routes/login/callback/+page.server.ts
  • src/routes/models/[...model]/+page.server.ts
  • src/routes/settings/+layout.server.ts
  • src/routes/tools/+page.server.ts
  • src/routes/tools/[toolId]/+layout.server.ts

Metadata

Metadata

Assignees

No one assigned

    Labels

    backThis issue is related to the Svelte backend or the DBenhancementNew feature or requestfrontThis issue is related to the front-end of the app.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions