1
Fork 0

typescript(translucid): deprecated false

Signed-off-by: prescientmoon <git@moonythm.dev>
This commit is contained in:
Matei Adriel 2019-01-20 12:53:57 +02:00 committed by prescientmoon
parent 7bf47c368a
commit 3f4adad4ae
Signed by: prescientmoon
SSH key fingerprint: SHA256:UUF9JT2s8Xfyv76b8ZuVL7XrmimH4o49p4b+iexbVH4

View file

@ -19,7 +19,7 @@ class Translucid {
bind(path = "/", filepath = "", text = false, classes = []) {
this.app.get(path, async (req, res) => {
if (!text) {
res.sendFile(`${__dirname}/../../${filepath}`);
console.error("Blocking reading acces s deprecated, and would be remove in the next version.");
}
else {
const readResults = await read_1.read(filepath);