diff --git a/typescript/translucid/Translucid.js b/typescript/translucid/Translucid.js index 1435d81..36cf994 100644 --- a/typescript/translucid/Translucid.js +++ b/typescript/translucid/Translucid.js @@ -46,7 +46,7 @@ class Translucid { toRun[i](prev, ...expressArgs, decorated[i + 1]); }); } - decorated.push((prev, req, res) => { + decorated.push((prev) => { console.log(`${__dirname}/../../${filepath}`); // res.contentType(`${__dirname}/../../${filepath}`); res.send(prev); diff --git a/typescript/translucid/Translucid.ts b/typescript/translucid/Translucid.ts index 2cf173f..10be791 100644 --- a/typescript/translucid/Translucid.ts +++ b/typescript/translucid/Translucid.ts @@ -54,7 +54,7 @@ class Translucid { toRun[i](prev, ...expressArgs, decorated[i + 1]); }); } - decorated.push((prev:any,req,res):void => { + decorated.push((prev:any):void => { console.log(`${__dirname}/../../${filepath}`); // res.contentType(`${__dirname}/../../${filepath}`); res.send(prev);