Files
foka-ci/apps/server/middlewares/body-parser.ts
2025-09-06 01:44:33 +08:00

13 lines
259 B
TypeScript

import bodyParser from 'koa-bodyparser';
import type Koa from 'koa';
import type { Middleware } from './types.ts';
/**
* 请求体解析中间件
*/
export class BodyParser implements Middleware {
apply(app: Koa): void {
app.use(bodyParser());
}
}