import re
from pathlib import Path

file_path = Path("app/modules/core/presentation/health_static.py")
content = file_path.read_text(encoding="utf-8")

lines = content.split('\n')
new_lines = []
for line in lines:
    if line.strip().startswith('@router.get("') and not '/v1/erp/' in line and not line.strip() in ['@router.get("/favicon.ico", include_in_schema=False)', '@router.get("/favicon.svg", include_in_schema=False)']:
        # Wait, if we just remove all router.get that don't have /v1/erp/
        continue
    new_lines.append(line)

file_path.write_text('\n'.join(new_lines), encoding="utf-8")
print("Done")
