import re
with open('app/modules/core/presentation/health_static.py', 'r', encoding='utf-8') as f:
    content = f.read()

# Match @router.get("/something") but avoid replacing things that already have /v1/erp
def replacer(match):
    path = match.group(1)
    if path.startswith("/v1/erp/") or path == "/favicon.ico" or path == "/favicon.svg":
        return match.group(0)
    
    return f'@router.get("/v1/erp{path}"'

content = re.sub(r'@router\.get\("([^"]+)"', replacer, content)

with open('app/modules/core/presentation/health_static.py', 'w', encoding='utf-8') as f:
    f.write(content)
