refactor(oauth): move oauth rest service to extension

pull/2749/head
Chaim Lev Ari 2019-01-02 20:00:41 +02:00
parent 7aaa9e58e9
commit 15b6941872
2 changed files with 4 additions and 2 deletions

View File

@ -1 +1,3 @@
angular.module('portainer.extensions.oauth', []);
angular.module('portainer.extensions.oauth', [
'ngResource'
]);

View File

@ -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) {
'use strict';
return $resource(API_ENDPOINT_OAUTH, {}, {