How to accept Stripe webhook?

Hi,

I need to make my Streamlit server accept a Stripe webhook request and trigger a function that sends the appropriate info to Stripe and to a local SQL db. How can I do this? I think I just need to persuade Streamlit to honor a route like myserver.com/webhook.