From 23dd6e580d67abcc0d22ab1168eceb16e65ed132 Mon Sep 17 00:00:00 2001 From: Matei Adriel Date: Sun, 20 Jan 2019 13:13:08 +0200 Subject: [PATCH] typescript(translucid): fixed res path of public 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 18f2dca..188ca5e 100644 --- a/typescript/translucid/Translucid.js +++ b/typescript/translucid/Translucid.js @@ -18,7 +18,7 @@ class Translucid { this.midleware.push(obj); } public(path = "") { - this.app.use(`/${path}`, express.static(`/${path}`)); + this.app.use(`/${path}`, express.static(`${__dirname}/../../${path}`)); } bind(path = "/", filepath = "", classes = []) { this.app.get(path, async (req, res) => {