Middleware for Koa2 to serve a folder under a name declared by user
npm install koa-static2
import Koa from "koa";
import serve from "koa-static2";
const app = new Koa();
app.use(serve("static", __dirname + "/assets"));MIT
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Middleware for Koa2 to serve a folder under a name declared by user
npm install koa-static2
import Koa from "koa";
import serve from "koa-static2";
const app = new Koa();
app.use(serve("static", __dirname + "/assets"));MIT