import { HttpMethodEnum, koaBody } from "koa-body";
export function KoaBodyMiddleware() {
    const options = {
        multipart: true,
        urlencoded: true,
        parsedMethods: [
            HttpMethodEnum.POST,
            HttpMethodEnum.PUT,
            HttpMethodEnum.PATCH,
            HttpMethodEnum.DELETE
        ] // dear god mastodon why
    };
    return koaBody(options);
}
