diff --git a/psa_car_controller/web/view/api.py b/psa_car_controller/web/view/api.py index 45654c7..0269e68 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())