From 15b6941872b4ca160719ba057b819d3505f405ad Mon Sep 17 00:00:00 2001 From: Chaim Lev Ari Date: Wed, 2 Jan 2019 20:00:41 +0200 Subject: [PATCH] refactor(oauth): move oauth rest service to extension --- app/extensions/oauth/__module.js | 4 +++- app/{portainer => extensions/oauth/services}/rest/oauth.js | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) rename app/{portainer => extensions/oauth/services}/rest/oauth.js (83%) diff --git a/app/extensions/oauth/__module.js b/app/extensions/oauth/__module.js index 80b17e495..564c659f7 100644 --- a/app/extensions/oauth/__module.js +++ b/app/extensions/oauth/__module.js @@ -1 +1,3 @@ -angular.module('portainer.extensions.oauth', []); \ No newline at end of file +angular.module('portainer.extensions.oauth', [ + 'ngResource' +]); \ No newline at end of file diff --git a/app/portainer/rest/oauth.js b/app/extensions/oauth/services/rest/oauth.js similarity index 83% rename from app/portainer/rest/oauth.js rename to app/extensions/oauth/services/rest/oauth.js index c1d2a68ad..a6eff3bf7 100644 --- a/app/portainer/rest/oauth.js +++ b/app/extensions/oauth/services/rest/oauth.js @@ -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, {}, {