Skip to content

Commit

Permalink
reset urls as it was before
Browse files Browse the repository at this point in the history
  • Loading branch information
prayerslayer committed Oct 30, 2015
1 parent e0cc35c commit 04b2abf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
4 changes: 2 additions & 2 deletions client/lib/common/src/data/team/team-actions.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/* global ENV_DEVELOPMENT */
import {Actions} from 'flummox';
import TEAM_BASE_URL from 'TEAM_BASE_URL';
import request from 'common/src/superagent';
import {Provider, RequestConfig, saveRoute} from 'common/src/oauth-provider';

function fetchAccounts() {
return request
.get(`${TEAM_BASE_URL}/accounts`)
.get(`${ENV_DEVELOPMENT ? 'http://localhost:5005' : ''}/accounts`)
.accept('json')
.oauth(Provider, RequestConfig)
.exec(saveRoute)
Expand Down
11 changes: 4 additions & 7 deletions client/lib/common/src/data/user/user-actions.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
/* globals Date, Promise */
/* globals Date, Promise, ENV_DEVELOPMENT */
import {Actions} from 'flummox';
import request from 'common/src/superagent';
import USER_BASE_URL from 'USER_BASE_URL';
import TEAM_BASE_URL from 'TEAM_BASE_URL';
import OAUTH_TOKENINFO_URL from 'OAUTH_TOKENINFO_URL';
import {Provider, RequestConfig, saveRoute} from 'common/src/oauth-provider';

function fetchTokenInfo() {
Expand All @@ -12,7 +9,7 @@ function fetchTokenInfo() {
return Promise.reject();
}
return request
.get(`${OAUTH_TOKENINFO_URL}`)
.get(`${ENV_DEVELOPMENT ? 'http://localhost:5006' : ''}/tokeninfo`)
.query({
access_token: token
})
Expand Down Expand Up @@ -46,7 +43,7 @@ function fetchAccessToken() {

function fetchUserInfo(userId) {
return request
.get(`${USER_BASE_URL}/users/${userId}`)
.get(`${ENV_DEVELOPMENT ? 'http://localhost:5009' : ''}/users/${userId}`)
.accept('json')
.oauth(Provider, RequestConfig)
.exec(saveRoute)
Expand All @@ -59,7 +56,7 @@ function fetchUserInfo(userId) {

function fetchAccounts(userId) {
return request
.get(`${TEAM_BASE_URL}/accounts/${userId}`)
.get(`${ENV_DEVELOPMENT ? 'http://localhost:5005' : ''}/accounts/${userId}`)
.accept('json')
.oauth(Provider, RequestConfig)
.exec(saveRoute)
Expand Down

0 comments on commit 04b2abf

Please sign in to comment.