Explorar o código

fix: 删除接口

IlhamTahir hai 1 ano
pai
achega
fe63b5edc9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);