fix(core): update
This commit is contained in:
parent
8eb777dd45
commit
1158b4ff99
@ -20,6 +20,13 @@ export class Worker {
|
||||
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