typescript(translucid): oof
Signed-off-by: prescientmoon <git@moonythm.dev>
This commit is contained in:
parent
5c5dfac46d
commit
dd2f058a4a
|
@ -19,7 +19,7 @@ class Translucid {
|
|||
bind(path = "/", filepath = "", text = false, classes = []) {
|
||||
this.app.get(path, async (req, res) => {
|
||||
if (!text) {
|
||||
res.sendFile(`${__dirname}/${filepath}`);
|
||||
res.sendFile(`${__dirname}/../../${filepath}`);
|
||||
}
|
||||
else {
|
||||
const readResults = await read_1.read(filepath);
|
||||
|
|
Loading…
Reference in a new issue