Skip to content

Commit

Permalink
Merge pull request #23 from Vidyaranya-Gavai-TTPL/0.2-dev
Browse files Browse the repository at this point in the history
Request Type Changed: Update Invitation
  • Loading branch information
gouravmore authored Feb 7, 2025
2 parents a551adb + 3d4bfa5 commit 7c65bef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/invitation/invitation.controller.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Body, Controller, Get, Post, Put, Query, Req, Res, UseGuards, UsePipes, ValidationPipe } from '@nestjs/common';
import { Body, Controller, Get, Patch, Post, Query, Req, Res, UseGuards, UsePipes, ValidationPipe } from '@nestjs/common';
import { InvitationService } from './invitation.service';
import { ApiBadRequestResponse, ApiBasicAuth, ApiBody, ApiCreatedResponse, ApiForbiddenResponse } from '@nestjs/swagger';
import { CreateInvitationDto } from './dto/create-invitation.dto';
Expand Down Expand Up @@ -37,7 +37,7 @@ export class InvitationController {
return await this.invitationService.getInvitations(request, response);
}

@Put("/update")
@Patch("/update")
@ApiBasicAuth("access-token")
@ApiBody({ type: UpdateInvitationDto })
@ApiForbiddenResponse({ description: "Only invitees can update status" })
Expand Down

0 comments on commit 7c65bef

Please sign in to comment.