WhatsApp webhook main page

Hello,

I’m kinda new at html and javascript and I want to use the WhatsApp Cloud API. I’ve opened and remixed the webhook project in Meta Docs and received data successfully, but I want to add a page for users see these data. Is it possible to add a index.html file in the project and use it?
I’ve tried to add it already, but the blank page with the message “Cannot GET /” doesn’t go away.

1 Like

Hi there - you’re going to need to add code to your server file to tell the app how/where to serve the index.html file. For an example of how this is done with Express, see line 15 of server.js in ~hello-express - if you are using Fastify, see line 26 of server.js in ~glitch-blank-node.

3 Likes

Thank you!

2 Likes