feat(products): add reset functionality to delete all products and related data

This commit is contained in:
Nils-Johan Gynther
2026-04-17 21:22:54 +02:00
parent befa15609a
commit e41ee760b9
5 changed files with 93 additions and 0 deletions
@@ -3,6 +3,7 @@ import {
Controller,
Delete,
Get,
HttpCode,
Param,
ParseIntPipe,
Patch,
@@ -109,4 +110,10 @@ export class ProductsController {
restore(@Param('id', ParseIntPipe) id: number) {
return this.productsService.restore(id);
}
@Delete('reset-all')
@HttpCode(200)
resetAll() {
return this.productsService.resetAll();
}
}