1
Fork 0
solar-conflux/typescript/translucid/test.js
Matei Adriel 62b1390b18
typescript(translucid): first commit
Signed-off-by: prescientmoon <git@moonythm.dev>
2019-01-19 22:41:54 +02:00

14 lines
404 B
JavaScript

"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"]
});