Make status consistent upper case

This commit is contained in:
Simon Nishi McCorkindale 2021-06-04 00:41:48 +08:00
parent 03e4016b4b
commit 2a02adf14d

View file

@ -144,7 +144,7 @@ def serve(servername, port, id):
@app.route('/api/status') @app.route('/api/status')
def status(): def status():
status = "online" # TODO implement me status = "ONLINE" # TODO implement me
return Response(json.dumps({"server" : servername, "devices": id, "status": status}), status=400, content_type='text/plain') return Response(json.dumps({"server" : servername, "devices": id, "status": status}), status=400, content_type='text/plain')
# JSON API ---------------------------------------------- # JSON API ----------------------------------------------