diff --git a/backend/src/cost/cashflow-cost.controller.ts b/backend/src/cost/cashflow-cost.controller.ts index 2de8a53..9d66837 100644 --- a/backend/src/cost/cashflow-cost.controller.ts +++ b/backend/src/cost/cashflow-cost.controller.ts @@ -5,7 +5,7 @@ import { Delete, Get, Param, - Patch, + Put, Post, UseGuards } from '@nestjs/common'; @@ -114,7 +114,7 @@ export class CostController { return await this.costService.createCost(body); } - @Patch(':costName') + @Put(':costName') @UseGuards(VerifyAdminRoleGuard) @ApiBearerAuth() @ApiOperation({ summary: 'Update cost fields by name' }) diff --git a/frontend/src/main-page/MainPage.tsx b/frontend/src/main-page/MainPage.tsx index 8149cb3..e6b694f 100644 --- a/frontend/src/main-page/MainPage.tsx +++ b/frontend/src/main-page/MainPage.tsx @@ -97,7 +97,7 @@ function MainPage() { +