Skip to content

Commit

Permalink
Fix assets folder path
Browse files Browse the repository at this point in the history
  • Loading branch information
MrBartusek committed Mar 8, 2024
1 parent acf10d8 commit 7bcdff0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/api/src/images/images.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ export class ImagesController {
@Get('default')
@Header('Cache-Control', `public, max-age=${CACHE_TIME}`)
getDefault(@Res() res: Response) {
const file = createReadStream(join(process.cwd(), '/src/assets/default.png'));
const assetsFolder = join(__dirname, '../..', 'src/assets');
const file = createReadStream(join(assetsFolder, 'default.png'));
file.pipe(res);
}

Expand Down

0 comments on commit 7bcdff0

Please sign in to comment.