fix urls
This commit is contained in:
parent
91cd5d87fd
commit
0562b58761
|
@ -441,7 +441,7 @@ OAUTH3.requests.accounts = {};
|
||||||
OAUTH3.requests.accounts.update = function (directive, session, opts) {
|
OAUTH3.requests.accounts.update = function (directive, session, opts) {
|
||||||
var dir = directive.update_account || {
|
var dir = directive.update_account || {
|
||||||
method: 'POST'
|
method: 'POST'
|
||||||
, url: 'https://' + directive.provider_url + '/api/org.oauth3.provider/accounts/:accountId'
|
, url: OAUTH3.url.normalize(directive.api) + '/api/org.oauth3.provider/accounts/:accountId'
|
||||||
, bearer: 'Bearer'
|
, bearer: 'Bearer'
|
||||||
};
|
};
|
||||||
var url = dir.url
|
var url = dir.url
|
||||||
|
@ -465,7 +465,7 @@ OAUTH3.requests.accounts.update = function (directive, session, opts) {
|
||||||
OAUTH3.requests.accounts.create = function (directive, session, account) {
|
OAUTH3.requests.accounts.create = function (directive, session, account) {
|
||||||
var dir = directive.create_account || {
|
var dir = directive.create_account || {
|
||||||
method: 'POST'
|
method: 'POST'
|
||||||
, url: 'https://' + directive.api + '/api/org.oauth3.provider/accounts'
|
, url: OAUTH3.url.normalize(directive.api) + '/api/org.oauth3.provider/accounts'
|
||||||
, bearer: 'Bearer'
|
, bearer: 'Bearer'
|
||||||
};
|
};
|
||||||
var data = {
|
var data = {
|
||||||
|
|
Loading…
Reference in New Issue