From 5d08b794bf36280f6f3c7c65f17da266aaef1030 Mon Sep 17 00:00:00 2001 From: Matei Adriel Date: Sun, 20 Jan 2019 13:02:48 +0200 Subject: [PATCH] typescript(translucid): public Signed-off-by: prescientmoon --- typescript/translucid/Translucid.js | 3 +++ 1 file changed, 3 insertions(+) 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);