I had to update my backend hostname to be api.example.com instead of example.com/api. Then I updated the DNS config to include the new hostname so it is all good now. I think the requests were being caught by the frontend public hostname instead of the backend one which made it so the requests were never received by express.