This commit is contained in:
syuilo 2022-06-26 17:38:50 +09:00
parent 744db4b5ed
commit 4634920866
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ import { ApiError } from './error.js';
export default (endpoint: IEndpoint, ctx: Koa.Context) => new Promise<void>((res) => {
const body = ctx.is('multipart/form-data')
? (ctx.req as any).body
? (ctx.request as any).body
: ctx.method === 'GET'
? ctx.query
: ctx.request.body;