mirror of https://github.com/status-im/consul.git
26 lines
520 B
JavaScript
26 lines
520 B
JavaScript
/**
|
|
* Copyright (c) HashiCorp, Inc.
|
|
* SPDX-License-Identifier: MPL-2.0
|
|
*/
|
|
|
|
(routes =>
|
|
routes({
|
|
['oauth-provider-debug']: {
|
|
_options: {
|
|
path: '/oauth-provider-debug',
|
|
queryParams: {
|
|
redirect_uri: 'redirect_uri',
|
|
response_type: 'response_type',
|
|
scope: 'scope',
|
|
},
|
|
},
|
|
},
|
|
}))(
|
|
(
|
|
json,
|
|
data = typeof document !== 'undefined' ? document.currentScript.dataset : module.exports
|
|
) => {
|
|
data[`routes`] = JSON.stringify(json);
|
|
}
|
|
);
|