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) => {