Skip to content

Commit

Permalink
Remived duplicate POST config endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
GlassOnTin committed Nov 16, 2024
1 parent f331d55 commit 96ed396
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions gecko_controller/web/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,18 +297,6 @@ def get_config():
"""Get current configuration"""
return jsonify(read_config())

@app.route('/api/config', methods=['POST'])
def update_config():
"""Update configuration"""
try:
new_config = request.get_json()
write_config(new_config)
# Restart the gecko-controller service to apply changes
os.system('systemctl restart gecko-controller')
return jsonify({'status': 'success'})
except Exception as e:
return jsonify({'status': 'error', 'message': str(e)}), 400

@app.route('/api/logs')
def get_logs():
"""Get log data"""
Expand Down

0 comments on commit 96ed396

Please sign in to comment.