typescript(translucid): fixed bugs
Signed-off-by: prescientmoon <git@moonythm.dev>
This commit is contained in:
parent
46fdc8a70a
commit
43a4771148
2 changed files with 2 additions and 2 deletions
typescript/translucid
|
@ -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…
Add table
Add a link
Reference in a new issue