diff --git a/typescript/translucid/Translucid.js b/typescript/translucid/Translucid.js index 3f464ec..0b61ea4 100644 --- a/typescript/translucid/Translucid.js +++ b/typescript/translucid/Translucid.js @@ -16,6 +16,9 @@ class Translucid { use(obj) { this.midleware.push(obj); } + public(path = "") { + this.app.use(`${__dirname}/../../${path}`, express.static(`${__dirname}/../../${path}`)); + } bind(path = "/", filepath = "", classes = []) { this.app.get(path, async (req, res) => { const readResults = await read_1.read(filepath);