BREAKING CHANGE(API): move to .convenience property
This commit is contained in:
@@ -38,7 +38,7 @@ export class CloudflareWorker {
|
||||
* gets all routes for a worker
|
||||
*/
|
||||
public async getRoutes() {
|
||||
const zones = await this.workerManager.cfAccount.listZones();
|
||||
const zones = await this.workerManager.cfAccount.convenience.listZones();
|
||||
for (const zone of zones) {
|
||||
const requestRoute = `/zones/${zone.id}/workers/routes`;
|
||||
const response: {
|
||||
|
||||
Reference in New Issue
Block a user