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
|
@ -1 +1,3 @@
|
||||||
angular.module('portainer.extensions.oauth', []);
|
angular.module('portainer.extensions.oauth', [
|
||||||
|
'ngResource'
|
||||||
|
]);
|
|
@ -1,4 +1,4 @@
|
||||||
angular.module('portainer.app')
|
angular.module('portainer.extensions.oauth')
|
||||||
.factory('OAuth', ['$resource', 'API_ENDPOINT_OAUTH', function OAuthFactory($resource, API_ENDPOINT_OAUTH) {
|
.factory('OAuth', ['$resource', 'API_ENDPOINT_OAUTH', function OAuthFactory($resource, API_ENDPOINT_OAUTH) {
|
||||||
'use strict';
|
'use strict';
|
||||||
return $resource(API_ENDPOINT_OAUTH, {}, {
|
return $resource(API_ENDPOINT_OAUTH, {}, {
|
Loading…
Add table
Add a link
Reference in a new issue