Files
DefinitelyTyped/koa-json/koa-json-tests.ts
2016-04-12 21:52:08 +09:00

15 lines
257 B
TypeScript

/// <reference path="../koa/koa.d.ts" />
/// <reference path="koa-json.d.ts" />
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)