13 lines
381 B
Python
13 lines
381 B
Python
import re
|
|
|
|
main_rs_path = r"C:\Users\reazul.ashraf\workspace\rust\mcp-memory\server\src\main.rs"
|
|
|
|
with open(main_rs_path, "r", encoding="utf-8") as f:
|
|
content = f.read()
|
|
|
|
content = content.replace('.route("/api/tasks/:id/complete"', '.route("/api/tasks/{id}/complete"')
|
|
|
|
with open(main_rs_path, "w", encoding="utf-8") as f:
|
|
f.write(content)
|
|
print("Replaced route syntax.")
|