fix(scaffolder): integrate with backend

This commit is contained in:
Ivan Shmidt
2020-06-29 14:22:35 +02:00
parent f937602641
commit 26d4bda16f
3 changed files with 14 additions and 25 deletions
+3
View File
@@ -44,6 +44,9 @@ export class ScaffolderApi {
const url = `${this.apiOrigin}${this.basePath}/jobs`;
const { id: jobId } = await fetch(url, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({ template, values }),
}).then(x => x.json());