Hi,
You can directly type the body since its type is unknown
interface IBody {
data?: {
text_field: string;
// Your properties
}
}
module.exports = createCoreController('api:example.Example', ({strapi}) =>({
async customAction (ctx) {
const body = ctx.request.body;
// ...
}
}));