mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-12 03:46:07 +08:00
13 lines
196 B
TypeScript
13 lines
196 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);
|