10 lines
894 B
Python
10 lines
894 B
Python
import re
|
||
import shutil
|
||
shutil.copy('app.py', 'app.py.backup')
|
||
with open('app.py', 'r', encoding='utf-8') as file:
|
||
content = file.read()
|
||
content = content.replace('@app.route(\'/api/mindmap/<node_id>\')', '# GENERISCHE ROUTE - SOLLTE NACH DER ROOT-ROUTE KOMMEN\n@app.route(\'/api/mindmap/<node_id>\')')
|
||
with open('app.py', 'w', encoding='utf-8') as file:
|
||
file.write(content)
|
||
print('Reihenfolge der Routen erfolgreich markiert!')
|