codeforkansascity / clear_my_record_backend

Backend API Code for Clear My Record, an application to assist people the process of expunging their criminal convictions.
MIT License
5 stars 3 forks source link

Blueprints #50

Closed ejmg closed 5 years ago

ejmg commented 5 years ago

This PR makes our Flask application use Flask's blueprint facility.

This helps us separate the concerns of different parts of our application. Right now, that isn't too significant an issue, but if we start adding more routes or API resources, it'll be nice to keep these things separate from each other and the logic behind blueprints helps to achieve this. It will also make testing easier, as it allows us to more cleanly handle production configurations versus test configurations by completely removing the notion of a global flask application.

Major changes: