mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-08 00:37:03 +00:00
14 lines
253 B
TypeScript
14 lines
253 B
TypeScript
import * as Koa from "koa";
|
|
import * as bodyParser from "koa-bodyparser";
|
|
|
|
const app = new Koa();
|
|
|
|
app.use(bodyParser({ strict: false }));
|
|
|
|
app.use((ctx) => {
|
|
console.log(ctx.request.body);
|
|
console.log(ctx.request.rawBody);
|
|
});
|
|
|
|
app.listen(80);
|