Fix duplicate config routes
This commit is contained in:
@@ -80,19 +80,6 @@ def toggle_sensor_fault(name):
|
||||
return jsonify(response)
|
||||
|
||||
|
||||
|
||||
@app.route("/config")
|
||||
def get_config():
|
||||
return jsonify(esp32.load_config())
|
||||
|
||||
|
||||
@app.route("/config", methods=["POST"])
|
||||
def save_config():
|
||||
config = request.get_json(force=True)
|
||||
return jsonify(esp32.save_config(config))
|
||||
|
||||
|
||||
|
||||
@app.route("/config")
|
||||
def get_config():
|
||||
return jsonify(esp32.load_config())
|
||||
|
||||
Reference in New Issue
Block a user