diff --git a/back/src/modules/apis/apis.controller.ts b/back/src/modules/apis/apis.controller.ts index 92c0bc6..66cc76f 100644 --- a/back/src/modules/apis/apis.controller.ts +++ b/back/src/modules/apis/apis.controller.ts @@ -52,7 +52,8 @@ export class ApisController { async getDocs(@Param('id') id: string, @Res() res: Response) { const entry = await this.apisService.findOneOrThrow(id); if (!entry.htmlPath) throw new NotFoundException('Documentation not generated yet'); - res.sendFile(entry.htmlPath); + const absolutePath = path.resolve(entry.htmlPath); + res.sendFile(absolutePath); } @Get(':id/yaml')