Refactors control center for cars

This commit is contained in:
David Eder
2021-06-13 16:21:23 +02:00
parent 9d4727d681
commit 67b74e93c5
4 changed files with 75 additions and 35 deletions
+2 -2
View File
@@ -24,7 +24,7 @@ def get_cars_events():
print("Is the EVENT_STORE_URL running and reachable?")
raise e
return json_util.dumps({'cursor': cars})
return json_util.dumps(cars)
@app.route('/api/v1/resources/traffic_light_events', methods=['GET'])
@@ -52,7 +52,7 @@ def get_cars():
print("Is the entity_ident_server running and reachable?")
raise e
return json_util.dumps({'cursor': cars})
return json_util.dumps(cars)
@app.route('/api/v1/resources/traffic_lights', methods=['GET'])