This example demonstrates how to create Webhook functions. Webhook functions are the type-safe way to write HTTP endpoints that are used as Webhook targets. They are exposed publicly through your WunderNode. Optionally, you can configure a verifier in wundergraph.server.ts
that validates the signature of the incoming request. For Github Webhooks
we provide a verifier that you can use without writing any line of code.
Install the dependencies and run the complete example in one command:
npm install && npm start
After npm start
has been executed, your browser should open a new tab and navigate to http://localhost:9991/webhooks/github
.
Read the Docs.
Join us on Discord!