curl -k -u "$key:$secret" http://192.168.2.1/api/diagnostics/interface/getRoutes
curl -k -u "$key:$secret" http://192.168.2.1/api/routes/routes/reconfigure/
curl -v -k -X POST "https://192.168.3.1/api/caddy/ReverseProxy/add" \ -H "Authorization: Basic API-KEY" \ -H "Content-Type: application/json" \ -d '{"reverse": {"Enabled": "1", "FromDomain": "example.com", "FromPort": "443", "ToDomain": "192.168.1.2", "ToPort": "443", "Description": "Test"}}' \ --insecure
-d '{}' \
# Replace these with your actual key and secretAPI_KEY='...'API_SECRET='...'# Base64 encode the credentialsENCODED_CREDENTIALS=$(echo -n "${API_KEY}:${API_SECRET}" | base64)