How to implement webhooks in the new Remix template?

I would like to implement web hooks within the newest remix template, and am struggling to configure callback functions in this version. Could anybody point me towards a working example; preferably using Pubsub as the DeliveryMethod. Thanks!