mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 12:56:46 +08:00
12 lines
176 B
TypeScript
12 lines
176 B
TypeScript
import * as Koa from "koa";
|
|
import * as json from 'koa-json';
|
|
|
|
const app = new Koa();
|
|
|
|
app.use(json({
|
|
pretty: false,
|
|
param: 'pretty',
|
|
spaces: 2
|
|
}));
|
|
|
|
app.listen(80) |