Changed default API base to match WSGI module
Turns out the wsgi module on the hosted storyboard api has a root path of /api/v1, rather than /v1 as in the dev environment. This change fixes the default in the webclient. The API's changes will be done independently. Change-Id: I3242df5886db96509561db81ef5b082bed3264da
This commit is contained in:
parent
47b3f87fce
commit
af49f0ca06
@ -49,5 +49,5 @@ angular.module('sb.services')
|
||||
|
||||
// Neither of those work, so default to something sane on the current
|
||||
// domain
|
||||
$provide.constant(propertyName, '/v1');
|
||||
$provide.constant(propertyName, '/api/v1');
|
||||
});
|
||||
|
@ -21,23 +21,23 @@
|
||||
describe('storyboardApiBase', function () {
|
||||
'use strict';
|
||||
|
||||
it('should default to /v1', function () {
|
||||
it('should default to /api/v1', function () {
|
||||
module('sb.services');
|
||||
|
||||
inject(function (storyboardApiBase) {
|
||||
expect(storyboardApiBase).toEqual('/v1');
|
||||
expect(storyboardApiBase).toEqual('/api/v1');
|
||||
});
|
||||
});
|
||||
|
||||
it('should detect a value in window.ENV', function () {
|
||||
window.ENV = {
|
||||
storyboardApiBase: 'https://localhost:8080/v1'
|
||||
storyboardApiBase: 'https://localhost:8080/api/v1'
|
||||
};
|
||||
|
||||
module('sb.services');
|
||||
|
||||
inject(function (storyboardApiBase) {
|
||||
expect(storyboardApiBase).toEqual('https://localhost:8080/v1');
|
||||
expect(storyboardApiBase).toEqual('https://localhost:8080/api/v1');
|
||||
});
|
||||
|
||||
delete window.ENV;
|
||||
|
Loading…
x
Reference in New Issue
Block a user