From e6c6b88789cd9db8eb567661df12d2ea9404e549 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Kratochv=C3=ADl?= <xkrato10@fi.muni.cz> Date: Fri, 17 Jun 2022 22:24:51 +0200 Subject: [PATCH] fix: enabled categories Patch and Delete methods --- backend/src/api/categories/categories.controller.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/backend/src/api/categories/categories.controller.ts b/backend/src/api/categories/categories.controller.ts index 7f33235..003b492 100644 --- a/backend/src/api/categories/categories.controller.ts +++ b/backend/src/api/categories/categories.controller.ts @@ -29,7 +29,7 @@ export class CategoriesController { async findOne(@Param('id') id: string) { return await this.categoriesService.findOne(id); } - /* + @Patch(':id') update(@Param('id') id: string, @Body() updateCategoryDto: UpdateCategoryDto) { return this.categoriesService.update(id, updateCategoryDto); @@ -39,5 +39,4 @@ export class CategoriesController { remove(@Param('id') id: string) { return this.categoriesService.remove(id); } -*/ } -- GitLab