The way to go to Adding requesthandlers to your on-premises installation described here:
https://docs.mendix.com/howto6/on-premises-deployment
Find your installation and browse to the correct page :)
Good luck!
Hi Julio,
Are you doing this in a cloud environment? If so you may need to enable the /p/ request handler under the 'Network' tab of the deployment settings for your environment: