sfaffolder: switch /v2/dryrun to /v2/dry-run
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user