typescript(translucid): deprecated false
Signed-off-by: prescientmoon <git@moonythm.dev>
This commit is contained in:
parent
7bf47c368a
commit
3f4adad4ae
|
@ -19,7 +19,7 @@ class Translucid {
|
||||||
bind(path = "/", filepath = "", text = false, classes = []) {
|
bind(path = "/", filepath = "", text = false, classes = []) {
|
||||||
this.app.get(path, async (req, res) => {
|
this.app.get(path, async (req, res) => {
|
||||||
if (!text) {
|
if (!text) {
|
||||||
res.sendFile(`${__dirname}/../../${filepath}`);
|
console.error("Blocking reading acces s deprecated, and would be remove in the next version.");
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
const readResults = await read_1.read(filepath);
|
const readResults = await read_1.read(filepath);
|
||||||
|
|
Loading…
Reference in a new issue