diff --git a/src/plugin.ts b/src/plugin.ts index 090b7f1..c2cd43a 100644 --- a/src/plugin.ts +++ b/src/plugin.ts @@ -165,7 +165,7 @@ const register = async (server: Hapi.Server, options: ExtendedAdminJSOptions) => ? { auth, payload: { - allow: 'multipart/form-data', + allow: ['multipart/form-data', 'application/json'], multipart: { output: 'stream' }, }, }