Skip to content

Commit 53210d6

Browse files
committed
feat: retrieve public app settings by domain
1 parent b12f423 commit 53210d6

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

lib/Services/cayenne.js

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -584,12 +584,25 @@ class Cayenne {
584584
return this.auth.send(this.service, 'GET', url);
585585
}
586586

587+
/**
588+
*
589+
* @param {String} domain
590+
* @param {Object} query
591+
* @param {Number} [query.page = 0]
592+
* @param {Number} [query.limit = 25]
593+
*/
594+
getPublicApplicationSettingsByDomain(domain, query) {
595+
const url = `${this.url}/applications/domains/${domain}/settings`;
596+
597+
return this.auth.send(this.service, 'GET', url, { isPublic: true, query });
598+
}
599+
587600
/**
588601
*
589602
* @param {String} applicationId
590603
* @param {Object} query
591-
* @param {Number} [query.page=0]
592-
* @param {Number} [query.limit=25]
604+
* @param {Number} [query.page = 0]
605+
* @param {Number} [query.limit = 25]
593606
*/
594607
getPublicApplicationSettings(applicationId, query) {
595608
const url = `${this.url}/applications/${applicationId}/settings`;

0 commit comments

Comments
 (0)