picowebjs
v0.2.0
Published
A wrapper around koa web framework
Downloads
3
Readme
A simple wrapper around Koa web framework.
**Not ready for Production**
let webServer = require("picoweb");
webServer.viewRoot(__dirname);
webServer.static(__dirname);
const home = async (ctx) => {
await ctx.view("index.html");
}
webServer.routes([
{ path: "/html", method: "GET", handler: home }
]);
webServer.stopOnInt();
webServer.start(7861, true);