mirror of
https://github.com/portainer/portainer.git
synced 2025-08-04 13:25:26 +02:00
refactor(oauth): move oauth rest service to extension
This commit is contained in:
parent
7aaa9e58e9
commit
15b6941872
2 changed files with 4 additions and 2 deletions
9
app/extensions/oauth/services/rest/oauth.js
Normal file
9
app/extensions/oauth/services/rest/oauth.js
Normal file
|
@ -0,0 +1,9 @@
|
|||
angular.module('portainer.extensions.oauth')
|
||||
.factory('OAuth', ['$resource', 'API_ENDPOINT_OAUTH', function OAuthFactory($resource, API_ENDPOINT_OAUTH) {
|
||||
'use strict';
|
||||
return $resource(API_ENDPOINT_OAUTH, {}, {
|
||||
login: {
|
||||
method: 'POST', ignoreLoadingBar: true
|
||||
}
|
||||
});
|
||||
}]);
|
Loading…
Add table
Add a link
Reference in a new issue