bradshjg / flask-githubapp

Flask extension for rapid Github app development in Python, in the spirit of probot (https://probot.github.io/)
MIT License
56 stars 14 forks source link

Add custom routes? #13

Closed sparky005 closed 3 years ago

sparky005 commented 3 years ago

Is it possible to add custom routes? I want to display a message when a GET request is sent to the root URL /. I also want to add a healthcheck at /health for kubernetes usage. I can't figure out how to do this right now.

sparky005 commented 3 years ago

Of course, RIGHT after I open the issue I figure out how to do it! For anybody else wondering: you can create routes on the regular old Flask app that gets initiated in the example code.