0
Fork 0
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:
Fabien O'Carroll 2019-04-12 12:10:34 +02:00
parent ee11ef5cf4
commit 37266cf552

View file

@ -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'));
} }