feat(products): change reset-all endpoint method from DELETE to POST

This commit is contained in:
Nils-Johan Gynther
2026-04-17 21:25:42 +02:00
parent e41ee760b9
commit ce8e561c03
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -111,7 +111,7 @@ export class ProductsController {
return this.productsService.restore(id);
}
@Delete('reset-all')
@Post('reset-all')
@HttpCode(200)
resetAll() {
return this.productsService.resetAll();
+1 -1
View File
@@ -76,7 +76,7 @@ export async function deleteProduct(id: number) {
export async function resetAllProducts() {
const res = await fetch(`${API_BASE}/api/products/reset-all`, {
method: 'DELETE',
method: 'POST',
headers: { ...(await getAuthHeaders()) },
cache: 'no-store',
});