Skip to content

Commit 79ce7e4

Browse files
authored
Merge pull request #353 from platformsh/front-755-update-wizard-endpoint
front-755 add getWizardSteps fn
2 parents 783bde5 + a4690c4 commit 79ce7e4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/model/Organization.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,4 +267,12 @@ export class Organization extends Ressource {
267267
});
268268
return organizationSubscription.save();
269269
}
270+
271+
async getWizardSteps(params: { template: string }) {
272+
const { api_url } = getConfig();
273+
274+
const url = `${api_url}/organizations/${this.id}/setup/wizard/${params.template}`;
275+
276+
return authenticatedRequest(url, "GET");
277+
}
270278
}

0 commit comments

Comments
 (0)