This bug has been spotted using hapijs, adminjs-hapijs and @adminjs/import-export plugins.
When doing so, the export feature of @adminjs/import-export fails with 415 status code.
After investigation, it appears that adminjs-hapijs restricts payload format for POST routes to multipart.
While this works well for classic CRUD actions, it does not work for every custom POST actions.
With this PR, the restriction about payload being multipart is removed.
This bug has been spotted using hapijs, adminjs-hapijs and @adminjs/import-export plugins. When doing so, the export feature of @adminjs/import-export fails with 415 status code.
After investigation, it appears that adminjs-hapijs restricts payload format for POST routes to multipart.
While this works well for classic CRUD actions, it does not work for every custom POST actions.
With this PR, the restriction about payload being multipart is removed.