bjones3 / webMinigame

Webgame built with pure Javascript and Python http://www.gardensim.club/
0 stars 0 forks source link

Refactor endpoints to separate game logic #73

Closed phblj closed 7 years ago

phblj commented 7 years ago

An endpoint function (one annotated with @app.route) should only do the following:

Clean up the existing endpoints so they're easier to read and offload data manipulation to helper functions.