Commit f0118963 authored by Joshua Tauberer's avatar Joshua Tauberer

management api: make json responses nicely formatted

Better while debugging.
parent 542877ee
...@@ -80,7 +80,7 @@ def unauthorized(error): ...@@ -80,7 +80,7 @@ def unauthorized(error):
return auth_service.make_unauthorized_response() return auth_service.make_unauthorized_response()
def json_response(data): def json_response(data):
return Response(json.dumps(data), status=200, mimetype='application/json') return Response(json.dumps(data, indent=2, sort_keys=True)+'\n', status=200, mimetype='application/json')
################################### ###################################
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment