feat: add getAdminURL and getAPIURL functions

This commit is contained in:
Elliot DeNolf
2021-01-09 00:48:39 -05:00
parent 335df19226
commit 8db73bbec2
2 changed files with 6 additions and 1 deletions

View File

@@ -195,6 +195,10 @@ export class Payload {
return email.account;
}
getAdminURL = (): string => `${this.config.serverURL}${this.config.routes.admin}`;
getAPIURL = (): string => `${this.config.serverURL}${this.config.routes.api}`;
/**
* @description Performs create operation
* @param options