From 56892083e6c95f28e6182075fcdca1cc12094fd9 Mon Sep 17 00:00:00 2001 From: Florian Bezannier Date: Sat, 23 Mar 2024 16:42:17 +0100 Subject: [PATCH] style: fix --- psa_car_controller/web/view/api.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/psa_car_controller/web/view/api.py b/psa_car_controller/web/view/api.py index 45654c7c..0269e68b 100644 --- a/psa_car_controller/web/view/api.py +++ b/psa_car_controller/web/view/api.py @@ -186,6 +186,7 @@ def settings_section(section: str): APP.config.write_config() return json_response(config_section.json()) + @app.route('/vehicles/trips') def get_trips(): try: @@ -208,6 +209,7 @@ def get_chargings(): logger.debug("Failed to get chargings, there is probably not enough data yet:", exc_info=True) return jsonify([]) + @app.route('/settings') def settings(): return json_response(APP.config.json())