From b915bd8eda95c195edf278506eabc439abd18cd7 Mon Sep 17 00:00:00 2001 From: Matei Adriel Date: Sun, 20 Jan 2019 12:49:14 +0200 Subject: [PATCH] typescript(translucid): fixed path Signed-off-by: prescientmoon --- typescript/translucid/Translucid.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typescript/translucid/Translucid.js b/typescript/translucid/Translucid.js index 89416ab..840a785 100644 --- a/typescript/translucid/Translucid.js +++ b/typescript/translucid/Translucid.js @@ -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}`); + res.sendFile(`${__dirname}/../../${filepath}`); } else { const readResults = await read_1.read(filepath);