Skip to content
Snippets Groups Projects
Commit e04359f4 authored by DenisDao57's avatar DenisDao57
Browse files

fix slash link pdf

parent 35607bb0
No related branches found
No related tags found
1 merge request!15Upload fix
...@@ -19,7 +19,7 @@ export class ResourcesController { ...@@ -19,7 +19,7 @@ export class ResourcesController {
@Param('filename') filename, @Param('filename') filename,
@Res({ passthrough: true }) res: Response, @Res({ passthrough: true }) res: Response,
): StreamableFile { ): StreamableFile {
const filepath = `files\\${filename}`; const filepath = `files/${filename}`;
if (!existsSync(filepath)) throw NOT_FOUND; if (!existsSync(filepath)) throw NOT_FOUND;
const file = createReadStream(filepath); const file = createReadStream(filepath);
res.set({ res.set({
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment