Restructured entire API into blueprints
This commit is contained in:
parent
aede078eb9
commit
c995a15fdc
13 changed files with 739 additions and 1024 deletions
|
|
@ -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())))
|
||||
Loading…
Add table
Add a link
Reference in a new issue