1
Fork 0

typescript(translucid): hopefully...

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

View file

@ -47,6 +47,7 @@ class Translucid {
});
}
decorated.push((prev) => {
res.contentType(`${__dirname}/../../${filepath}`);
res.send(prev);
});
decorated[0](readResults);

View file

@ -55,6 +55,7 @@ class Translucid {
});
}
decorated.push((prev:any):void => {
res.contentType(`${__dirname}/../../${filepath}`);
res.send(prev);
});