Added translations using i18next

ref #5
This commit is contained in:
2021-02-05 21:20:05 +01:00
parent 19697692bc
commit 75eb925267
3 changed files with 22 additions and 5 deletions

View File

@@ -13,9 +13,8 @@ export class PdfController {
@Post('/contracts')
@OpenAPI({ description: "Generate Sponsoring contract pdfs from runner objects." })
async generateContracts(@Body({ validate: true }) runner: Runner, @Res() res: any) {
console.log(runner)
const contracts = await this.pdf.generateSponsoringContract(runner);
res.setHeader('content-type', 'application/pdf');
return await contracts;
}
}
}