We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fde8dc4 commit 9bd6f82Copy full SHA for 9bd6f82
lib/accessControl.js
@@ -159,6 +159,16 @@ AccessControl.prototype.customHeaders = function (customHeaders) {
159
else return this._customHeaders;
160
};
161
162
+/**
163
+ * -- TerminusDB API ---
164
+ * Get an organization from the TerminusDB API.
165
+ * @param {string} organization - The organization
166
+ * @return {object} - organization
167
+ */
168
+AccessControl.prototype.getOrganization = function (org) {
169
+ return this.dispatch(`${this.baseURL}/organizations/${org}`, CONST.GET);
170
+};
171
+
172
/**
173
* -- TerminusDB API ---
174
* This end point works in basic authentication, admin user
0 commit comments