Allow to set an alternative endpoint for auth
This commit is contained in:
parent
cebaa0e8d1
commit
bbf0b7459f
|
@ -20,7 +20,7 @@ export default Ember.Service.extend({
|
||||||
},
|
},
|
||||||
|
|
||||||
endpoint: function() {
|
endpoint: function() {
|
||||||
return config.apiEndpoint;
|
return config.authEndpoint || config.apiEndpoint;
|
||||||
}.property(),
|
}.property(),
|
||||||
|
|
||||||
signOut: function() {
|
signOut: function() {
|
||||||
|
|
|
@ -61,6 +61,14 @@ module.exports = function(environment) {
|
||||||
terms: ENV.billingEndpoint + "/pages/terms"
|
terms: ENV.billingEndpoint + "/pages/terms"
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (process.env.API_ENDPOINT) {
|
||||||
|
ENV.apiEndpoint = process.env.API_ENDPOINT;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (process.env.AUTH_ENDPOINT) {
|
||||||
|
ENV.authEndpoint = process.env.AUTH_ENDPOINT;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (environment === 'development') {
|
if (environment === 'development') {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user