Mandatory GDPR webhook - advice on implementation

Dear Community,

I’m developing an embedded app with Node.js and React (using boilerplate code generated by Shopify CLI).

The problem is that when I want to test my GDPR webhooks implementation by hitting Request customer data button in the test store, I don’t see ‘CUSTOMER DATA REQUEST’ in the console, so it seems something is wrong with routing.

Could you advice on the correct implementation, please?

Thank you!

My implementation:

  1. index.js:

  1. gdpr.js:

  1. shopify.js:

  1. App settings in Partner’s dashboard: