You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
portainer/app/extensions/oauth/services/rest/oauth.js

21 lines
437 B

angular.module('portainer.extensions.oauth').factory('OAuth', [
'$resource',
'API_ENDPOINT_OAUTH',
function OAuthFactory($resource, API_ENDPOINT_OAUTH) {
'use strict';
return $resource(
API_ENDPOINT_OAUTH + '/:action',
{},
{
validate: {
method: 'POST',
ignoreLoadingBar: true,
params: {
action: 'validate',
},
},
}
);
},
]);