0.1.8 • Published 9 years ago
koa-static2 v0.1.8
Koa-static2
Middleware for Koa2 to serve a folder under a name declared by user
Install
npm install koa-static2
Usage
import Koa from "koa";
import serve from "koa-static2";
const app = new Koa();
app.use(serve("static", __dirname + "/assets"));
License
MIT