Skip to content

Commit

Permalink
removed unnecessary qr-code function
Browse files Browse the repository at this point in the history
Signed-off-by: bhavanakarwade <bhavana.karwade@ayanworks.com>
  • Loading branch information
bhavanakarwade committed Dec 20, 2023
1 parent 3cb813a commit 5a46c85
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions apps/api-gateway/src/issuance/issuance.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,17 +78,6 @@ export class IssuanceController {
private readonly logger = new Logger('IssuanceController');
private readonly PAGE: number = 1;

@Get('/issuance/oob/qr')
@ApiOperation({ summary: 'Out-Of-Band issuance QR', description: 'Out-Of-Band issuance QR' })
@ApiResponse({ status: 200, description: 'Success', type: ApiResponseDto })
@ApiExcludeEndpoint()
@ApiQuery({ name: 'base64Image', required: true })
async getQrCode(@Query('base64Image') base64Image: string, @Res() res: Response): Promise<Response> {
const getImageBuffer = await this.imageServiceService.getBase64Image(base64Image);
res.setHeader('Content-Type', 'image/png');
return res.send(getImageBuffer);
}

/**
* Description: Get all issued credentials
* @param user
Expand Down

0 comments on commit 5a46c85

Please sign in to comment.