mirror of https://github.com/portainer/portainer
21 lines
437 B
JavaScript
21 lines
437 B
JavaScript
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',
|
|
},
|
|
},
|
|
}
|
|
);
|
|
},
|
|
]);
|