typescript(translucid): public
Signed-off-by: prescientmoon <git@moonythm.dev>
This commit is contained in:
parent
09eccccf97
commit
5d08b794bf
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue