1 2 3 4 5 6 7 8 9 10 11 12 | 5x 12x 3x 2x 2x 3x | import Overland from '../core/Overland'; export default function override(app?: Overland) { return async function override(ctx, next?) { if (ctx.request && ctx.request.body) { const method = ctx.request.body._method; ctx.method = method ? method : ctx.method; } return await next(); }; } |