Nicify JSON response of devices list
This commit is contained in:
parent
2a02adf14d
commit
0af0f5e79a
1 changed files with 1 additions and 1 deletions
|
|
@ -152,7 +152,7 @@ def serve(servername, port, id):
|
||||||
@app.route('/api/json/devices')
|
@app.route('/api/json/devices')
|
||||||
def devicesjson():
|
def devicesjson():
|
||||||
devices = str(mf_wrapper.deviceIds(True))
|
devices = str(mf_wrapper.deviceIds(True))
|
||||||
return Response(json.dumps(devices), content_type='application/json')
|
return Response('{"devices":'+devices+'}', content_type='application/json')
|
||||||
|
|
||||||
@app.route('/api/json/randint32')
|
@app.route('/api/json/randint32')
|
||||||
def randjsonint32():
|
def randjsonint32():
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue