mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05:00
Added getConfig method to members layer1
no-issue This can be used for fetching information about the members api
This commit is contained in:
parent
ee11ef5cf4
commit
37266cf552
1 changed files with 5 additions and 0 deletions
|
@ -5,6 +5,7 @@ var events = require('minivents');
|
||||||
module.exports = function layer1(options) {
|
module.exports = function layer1(options) {
|
||||||
var members = {
|
var members = {
|
||||||
getToken,
|
getToken,
|
||||||
|
getConfig,
|
||||||
signout,
|
signout,
|
||||||
signin,
|
signin,
|
||||||
signup,
|
signup,
|
||||||
|
@ -29,6 +30,10 @@ module.exports = function layer1(options) {
|
||||||
return loadGateway.then(gatewayFn('getToken', {audience, fresh}));
|
return loadGateway.then(gatewayFn('getToken', {audience, fresh}));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function getConfig() {
|
||||||
|
return loadGateway.then(gatewayFn('getConfig'));
|
||||||
|
}
|
||||||
|
|
||||||
function signout() {
|
function signout() {
|
||||||
return loadGateway.then(gatewayFn('signout'));
|
return loadGateway.then(gatewayFn('signout'));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue