How to add custom routes to core routes in Strapi 4

Quick question:

How would you get the body content (i.e. ctx.request.body) in one of these custom controller functions?

It seems to be undefined for me, for some reason.

EDIT: found my answer here