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) {
|
||||
var dir = directive.update_account || {
|
||||
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'
|
||||
};
|
||||
var url = dir.url
|
||||
|
@ -465,7 +465,7 @@ OAUTH3.requests.accounts.update = function (directive, session, opts) {
|
|||
OAUTH3.requests.accounts.create = function (directive, session, account) {
|
||||
var dir = directive.create_account || {
|
||||
method: 'POST'
|
||||
, url: 'https://' + directive.api + '/api/org.oauth3.provider/accounts'
|
||||
, url: OAUTH3.url.normalize(directive.api) + '/api/org.oauth3.provider/accounts'
|
||||
, bearer: 'Bearer'
|
||||
};
|
||||
var data = {
|
||||
|
|
Loading…
Reference in New Issue