chore: Änderungen commited
This commit is contained in:
18
app.py
18
app.py
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user