typescript(translucid): fixed res path of public
Signed-off-by: prescientmoon <git@moonythm.dev>
This commit is contained in:
parent
933e964ff0
commit
23dd6e580d
|
@ -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) => {
|
||||
|
|
Loading…
Reference in a new issue