Restructured entire API into blueprints

This commit is contained in:
Joel Collins 2018-12-06 15:37:51 +00:00
parent aede078eb9
commit c995a15fdc
13 changed files with 739 additions and 1024 deletions

View file

@ -1,3 +1,5 @@
import pprint
def parse_payload(request):
"""Convert request to JSON. Will eventually handle error-checking."""
# TODO: Handle invalid JSON payloads
@ -31,4 +33,9 @@ def get_bool(get_arg):
get_arg == '1'):
return True
else:
return False
return False
def list_routes(app):
"""Print available functions."""
pprint.pprint(list(map(lambda x: repr(x), app.url_map.iter_rules())))