climate-tech-handbook / data-magic

Scripts and other fun tricks to enhance the site
MIT License
10 stars 5 forks source link

Put app routes into api/routes.py #24

Closed bigolboyyo closed 1 year ago

bigolboyyo commented 1 year ago

To provide more DRY code, I will abstract the routes from app.py into api/routes.py and use the blueprints in the app.py

shreeup commented 1 year ago

I will take a look into this task.

bigolboyyo commented 1 year ago

I will take a look into this task.

Very nice! Here's the Flask blueprint docs if needed: https://flask.palletsprojects.com/en/2.2.x/blueprints/

Postman is great for testing purposes: https://www.postman.com/