浏览代码

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()
   async delete(@Param('id') id: string) {
     await this.categoryService.delete(id);