fix(frontend): correct Pages deployment files route

Align the Pages deployment file-list request with the backend route and add a regression test.
This commit is contained in:
ryan
2026-07-13 09:29:22 +08:00
parent d97581fb1e
commit 439ac41da8
4 changed files with 41 additions and 4 deletions
@@ -44,11 +44,10 @@ export class PagesService extends OpenFlareBaseService {
}
static listDeploymentFiles(
projectId: number,
deploymentId: number,
): Promise<PagesDeploymentFile[]> {
return this.get<PagesDeploymentFile[]>(
`/${projectId}/deployments/${deploymentId}/files`,
`/deployments/${deploymentId}/files`,
);
}
@@ -107,4 +106,4 @@ export class PagesService extends OpenFlareBaseService {
return response.data.data;
}
}
}