ソースを参照

fix: 删除接口

IlhamTahir 1 年間 前
コミット
fe63b5edc9
1 ファイル変更1 行追加1 行削除
  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()
   @ApiBearerAuth()
   async delete(@Param('id') id: string) {
   async delete(@Param('id') id: string) {
     await this.categoryService.delete(id);
     await this.categoryService.delete(id);