From dd2f058a4a51ba478c43327eca69126808da3b97 Mon Sep 17 00:00:00 2001 From: Matei Adriel Date: Sun, 20 Jan 2019 12:35:39 +0200 Subject: [PATCH] typescript(translucid): oof 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);