Ver código fonte

fix: 删除接口

IlhamTahir 1 ano atrás
pai
commit
fe63b5edc9
1 arquivos alterados com 1 adições e 1 exclusões
  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);