feat(client/import): implement import json from reactive resume v2

This commit is contained in:
Amruth Pillai
2022-03-14 21:50:04 +01:00
parent ed78f8fc4e
commit 42408ce8c5
5 changed files with 368 additions and 4 deletions
@@ -42,4 +42,15 @@ export class IntegrationsController {
return this.integrationsService.reactiveResume(userId, file.path);
}
@UseGuards(JwtAuthGuard)
@Post('reactive-resume-v2')
@UseInterceptors(FileInterceptor('file'))
reactiveResumeV2(@User('id') userId: number, @UploadedFile() file: Express.Multer.File) {
if (!file) {
throw new HttpException('You must upload a valid JSON file.', HttpStatus.BAD_REQUEST);
}
return this.integrationsService.reactiveResumeV2(userId, file.path);
}
}