Edit:
It seems that my problem is slightly different. I can see endpoints if I modify prodigy/app.py , but I would like to have the endpoint in my own file. Any idea how to do this?
What happens if you define your endpoint at the root of your file instead of the recipe function? Because by the time custom_recipe is called, the server is already running. If you need state from the recipe in your endpoint, you could always solve that with globals.
I have tried that, but no matter where I put them I cannot access them or see them in the docs. Could you provide a working example? I think I'm missing something