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
- Open Admin and go to the Custom providers section.
- Enter a provider configuration and save it.
- 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,
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
PUT /v1/admin/custom-providers/:providerreturns 404.GET /v1/admin/custom-providersalso returns 404.Cause
buildAppreturnscustomProvidersandrefreshCustomProviders, and both are supported by the API dependency type. However,src/index.tsdoes not pass them intocreateServer.The custom-provider routes therefore receive no
ctx.deps.customProvidersand returnnot_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
createServerresolves the missing wiring: