fix(core): update
This commit is contained in:
parent
8eb777dd45
commit
1158b4ff99
@ -19,6 +19,13 @@ export class Worker {
|
||||
constructor(workerManagerArg: WorkerManager) {
|
||||
this.workerManager = workerManagerArg;
|
||||
}
|
||||
|
||||
/**
|
||||
* gets all routes for a worker
|
||||
*/
|
||||
public async getRoutes(){
|
||||
const zones = await this.workerManager.cfAccount.listZones();
|
||||
}
|
||||
|
||||
public setRoutes(routeArray: string[]) {
|
||||
|
||||
|
@ -3,7 +3,7 @@ import { CloudflareAccount } from './cloudflare.classes.account';
|
||||
import { Worker } from './cloudflare.classes.worker';
|
||||
|
||||
export class WorkerManager {
|
||||
private cfAccount: CloudflareAccount;
|
||||
public cfAccount: CloudflareAccount;
|
||||
|
||||
constructor(cfAccountArg: CloudflareAccount) {
|
||||
this.cfAccount = cfAccountArg;
|
||||
|
@ -2,7 +2,7 @@ import * as plugins from './cloudflare.plugins';
|
||||
import { CloudflareAccount } from './cloudflare.classes.account';
|
||||
|
||||
export class ZoneManager {
|
||||
private cfAccount: CloudflareAccount;
|
||||
public cfAccount: CloudflareAccount;
|
||||
public zoneName: string;
|
||||
|
||||
constructor(cfAccountArg: CloudflareAccount) {
|
||||
|
Loading…
Reference in New Issue
Block a user