Skip to content

Custom provider Admin API returns 404 #237

Description

@websideofamir

The Custom providers section is rendered in Admin, but its API requests return 404 {"error":"not_found"}. Providers cannot be listed, created, updated, or deleted through the UI.

Reproduction

  1. Open Admin and go to the Custom providers section.
  2. Enter a provider configuration and save it.
  3. Observe that PUT /v1/admin/custom-providers/:provider returns 404.

GET /v1/admin/custom-providers also returns 404.

Cause

buildApp returns customProviders and refreshCustomProviders, and both are supported by the API dependency type. However, src/index.ts does not pass them into createServer.

The custom-provider routes therefore receive no ctx.deps.customProviders and return not_found.

Expected

The Admin API should receive the custom-provider store and refresh function so the Custom providers section can list and manage providers.

Passing these dependencies to createServer resolves the missing wiring:

customProviders: built.customProviders,
refreshCustomProviders: built.refreshCustomProviders,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions