typescript(translucid): first commit
Signed-off-by: prescientmoon <git@moonythm.dev>
This commit is contained in:
parent
507091e37f
commit
62b1390b18
8 changed files with 498 additions and 0 deletions
typescript/translucid
13
typescript/translucid/test.js
Normal file
13
typescript/translucid/test.js
Normal file
|
@ -0,0 +1,13 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const app_1 = require("./app");
|
||||
const { app, translucid } = app_1.QuickServer(8000);
|
||||
translucid.bind("/", "index.html");
|
||||
translucid.bind("/test", "read.js", true, ["class"]);
|
||||
translucid.use({
|
||||
name: "wow, a midleware",
|
||||
run: (prev, req, res, next) => {
|
||||
next("sent by a midleware");
|
||||
},
|
||||
keys: ["class"]
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue