diff --git a/src/modules/contest/contest.controller.ts b/src/modules/contest/contest.controller.ts index 548f700..28c0a9e 100644 --- a/src/modules/contest/contest.controller.ts +++ b/src/modules/contest/contest.controller.ts @@ -135,7 +135,7 @@ export class ContestController { } @Roles(Role.Admin) - @Patch('/:contestId') + @Post('/:contestId') @ApiBearerAuth() @ApiBody({ type: PatchContestDTO }) @ApiResponse({ diff --git a/src/modules/problem/problem.controller.ts b/src/modules/problem/problem.controller.ts index 91cf2fb..29d9a46 100644 --- a/src/modules/problem/problem.controller.ts +++ b/src/modules/problem/problem.controller.ts @@ -140,7 +140,7 @@ export class ProblemController { //Admin route @Roles(Role.Admin) - @Patch('/:problemId') + @Post('/:problemId') @ApiBearerAuth() @ApiBody({ type: ToggleProblemDTO }) @ApiOkResponse({ type: ProblemDTO, description: 'Toggle problem show state' })