sfaffolder: switch /v2/dryrun to /v2/dry-run

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2022-05-31 10:27:18 +02:00
parent b622410ef0
commit 36c39f9b42
2 changed files with 2 additions and 2 deletions
@@ -334,7 +334,7 @@ export async function createRouter(
clearTimeout(timeout);
});
})
.post('/v2/dryrun', async (req, res) => {
.post('/v2/dry-run', async (req, res) => {
const template = req.body.template as TemplateEntityV1beta3;
const values = req.body.values;
const token = getBearerToken(req.headers.authorization);
+1 -1
View File
@@ -178,7 +178,7 @@ export class ScaffolderClient implements ScaffolderApi {
options: ScaffolderDryRunOptions,
): Promise<ScaffolderDryRunResponse> {
const baseUrl = await this.discoveryApi.getBaseUrl('scaffolder');
const response = await this.fetchApi.fetch(`${baseUrl}/v2/dryrun`, {
const response = await this.fetchApi.fetch(`${baseUrl}/v2/dry-run`, {
method: 'POST',
headers: {
'Content-Type': 'application/json',