Przeglądaj źródła

fix: 删除接口

IlhamTahir 1 rok temu
rodzic
commit
fe63b5edc9
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/article/controller/category.controller.ts

+ 1 - 1
src/article/controller/category.controller.ts

@@ -100,7 +100,7 @@ export class CategoryController {
     );
   }
 
-  @Delete()
+  @Delete(':id')
   @ApiBearerAuth()
   async delete(@Param('id') id: string) {
     await this.categoryService.delete(id);