mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-05 07:26:36 +08:00
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:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user