Closed phblj closed 7 years ago
An endpoint function (one annotated with @app.route) should only do the following:
@app.route
request.json
Clean up the existing endpoints so they're easier to read and offload data manipulation to helper functions.
An endpoint function (one annotated with
@app.route
) should only do the following:request.json
and separating out the useful pieces)Clean up the existing endpoints so they're easier to read and offload data manipulation to helper functions.