typescript(translucid): added all
Signed-off-by: prescientmoon <git@moonythm.dev>
This commit is contained in:
parent
62b1390b18
commit
4c45df126c
4 changed files with 101 additions and 0 deletions
typescript/translucid
12
typescript/translucid/test.ts
Normal file
12
typescript/translucid/test.ts
Normal file
|
@ -0,0 +1,12 @@
|
|||
import {QuickServer,Translucid} from "./app";
|
||||
|
||||
const {app,translucid} = 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