parent
9be3e789a5
commit
4cd437b6af
|
@ -13,7 +13,6 @@ export class PdfController {
|
|||
@Post('/contracts')
|
||||
@OpenAPI({ description: "Generate Sponsoring contract pdfs from runner objects." })
|
||||
async generateContracts(@Body({ validate: true }) runner: Runner, @Res() res: any, @QueryParam("locale") locale: string) {
|
||||
await this.pdf;
|
||||
const contracts = await this.pdf.generateSponsoringContract(runner, locale);
|
||||
res.setHeader('content-type', 'application/pdf');
|
||||
return await contracts;
|
||||
|
|
Loading…
Reference in New Issue