can you bind KV /d1 etc to a worker via API calls or do you need to use the toml file for that
can you bind KV /d1 etc to a worker via API calls or do you need to use the toml file for that

<zone-name>/* Service: None*.<zone-name>/* Service: None*/* Service: <worker to route to>
mycustomer.com/* Service: my-worker-for-customerwrangler dispatch-namespace secret put <secret-name> (this is more inline with how pages is handling it)PUT https://api.cloudflare.com/client/v4/accounts/{account_id}/workers/dispatch/namespaces/{namespace}/scripts/{script_name}/secrets
Content-Type: application/json
X-Auth-Key: YOUR-API-KEY
{
"name": "DB_PASSWORD",
"text": "secretPassword123",
"type": "secret_text"
}