diff --git a/typescript/translucid/Translucid.js b/typescript/translucid/Translucid.js index 557784a..6ec9710 100644 --- a/typescript/translucid/Translucid.js +++ b/typescript/translucid/Translucid.js @@ -47,6 +47,7 @@ class Translucid { }); } decorated.push((prev) => { + res.contentType(`${__dirname}/../../${filepath}`); res.send(prev); }); decorated[0](readResults); diff --git a/typescript/translucid/Translucid.ts b/typescript/translucid/Translucid.ts index 8d0a6a3..235737d 100644 --- a/typescript/translucid/Translucid.ts +++ b/typescript/translucid/Translucid.ts @@ -55,6 +55,7 @@ class Translucid { }); } decorated.push((prev:any):void => { + res.contentType(`${__dirname}/../../${filepath}`); res.send(prev); });