- Replace app/api.ts with a compatibility barrel that re-exports the legacy client API surface from app/api/legacy.ts
- Move the existing dashboard API implementation into app/api/legacy.ts and update static-analysis tests to include the new module path
- Update proxy wildcard routing to use /proxy/:nodeId/{*splat}, keeping explicit proxy handlers ahead of the fallback route
- Reject proxying to local nodes with a consistent 400 response and expand proxy route tests plus route-ordering compatibility notes
8 lines
244 B
TypeScript
8 lines
244 B
TypeScript
/**
|
|
* Compatibility barrel for the dashboard client API surface.
|
|
*
|
|
* Existing callers import from `../api` / `../../api`; keep this entrypoint stable
|
|
* while implementation lives under `app/api/*` modules.
|
|
*/
|
|
export * from "./api/legacy";
|