diff --git a/libs/playwright-scenes/src/recipes/recipe.ts b/libs/playwright-scenes/src/recipes/recipe.ts index c2e48fd858a..01f6f431c98 100644 --- a/libs/playwright-scenes/src/recipes/recipe.ts +++ b/libs/playwright-scenes/src/recipes/recipe.ts @@ -29,15 +29,8 @@ export abstract class Recipe { } async down(): Promise { - const response = await fetch(`${webServer.url}/api/delete`, { - method: "POST", - headers: { - "Content-Type": "application/json", - }, - body: JSON.stringify({ - template: this.template, - seedId: this.seedId, - }), + const response = await fetch(`${webServer.url}/api/seed/${this.seedId}`, { + method: "DELETE", }); if (!response.ok) {