1
Fork 0

typescript(translucid): noooooooooo

Signed-off-by: prescientmoon <git@moonythm.dev>
This commit is contained in:
Matei Adriel 2019-01-22 21:54:03 +02:00 committed by prescientmoon
parent f9bef432e3
commit 1feb795761
Signed by: prescientmoon
SSH key fingerprint: SHA256:UUF9JT2s8Xfyv76b8ZuVL7XrmimH4o49p4b+iexbVH4
2 changed files with 2 additions and 2 deletions

View file

@ -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);

View file

@ -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);