mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 04:50:18 +00:00
* Koa static supports an extensions option * Fix original package lint errors
13 lines
189 B
TypeScript
13 lines
189 B
TypeScript
import * as Koa from "koa";
|
|
import serve = require("koa-static");
|
|
|
|
const app = new Koa();
|
|
|
|
app.use(serve('.', {
|
|
index: false,
|
|
defer: false,
|
|
extensions: ['html']
|
|
}));
|
|
|
|
app.listen(80);
|