The lower-level libraries like chalicelib/responses.py return strings intended for end users. This make it difficult to customize the outgoing message for different routes.
Consider instead:
returning structured data (a class instance, dict, etc)
refactoring routes in app.py to assemble strings for particular uses.
The lower-level libraries like
chalicelib/responses.py
return strings intended for end users. This make it difficult to customize the outgoing message for different routes.Consider instead:
app.py
to assemble strings for particular uses.