Fixed 267U.pre2
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
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);
|
||||
}
|
||||
Reference in New Issue
Block a user