chore: Änderungen commited

This commit is contained in:
2025-05-10 22:56:49 +02:00
parent c654986f65
commit fcd82eb5c9
2 changed files with 431 additions and 7 deletions

18
app.py
View File

@@ -1154,6 +1154,24 @@ def remove_node_from_mindmap(mindmap_id, node_id):
return jsonify({'success': True})
@app.route('/api/mindmap/node/<int:node_id>', methods=['GET'])
@login_required
def get_node_info(node_id):
"""Liefert Detailinformationen zu einem einzelnen Knoten"""
try:
# Knoten abrufen
node = MindMapNode.query.get_or_404(node_id)
return jsonify({
'id': node.id,
'name': node.name,
'description': node.description or '',
'color_code': node.color_code or '#9F7AEA'
})
except Exception as e:
print(f"Fehler in get_node_info: {str(e)}")
return jsonify({'success': False, 'message': str(e)}), 500
@app.route('/api/mindmap/<int:mindmap_id>/update_node_position', methods=['POST'])
@login_required
def update_node_position(mindmap_id):