diff --git a/src/app/designer.controller.js b/src/app/designer.controller.js index 6ad972c..d966801 100644 --- a/src/app/designer.controller.js +++ b/src/app/designer.controller.js @@ -291,7 +291,7 @@ angular } $rootScope.modules_in_use = []; - service_components = ['documentation/openapi', 'auth/api-keys', 'telemetry/newrelic', 'server/virtualhost', 'server/static-filesystem']; + service_components = ['documentation/openapi', 'auth/api-keys', 'telemetry/newrelic', 'telemetry/moesif', 'server/virtualhost', 'server/static-filesystem']; endpoint_components = ['documentation/openapi', 'websocket', 'modifier/jmespath', 'security/policies', 'modifier/response-body-generator']; backend_components = ['auth/gcp','auth/ntlm','backend/http/client','backend/soap', 'modifier/jmespath', 'security/policies', 'modifier/body-generator', 'modifier/response-body-generator', 'backend/static-filesystem']; http_server_plugins = ['ip-filter', 'jwk-aggregator', 'krakend-afero', 'basic-auth', 'geoip', 'redis-ratelimit', 'url-rewrite', 'wildcard']; @@ -814,19 +814,6 @@ angular } }; - $rootScope.updateNonGETBackends = function (endpoint_index, old_value, message) { - - var num_backends = ('undefined' === typeof $rootScope.service.endpoints[endpoint_index].backend ? 0 : $rootScope.service.endpoints[endpoint_index].backend.length); - if (num_backends > 1) { - if (old_value == 'GET' && confirm(message)) { - $rootScope.service.endpoints[endpoint_index].backend.splice(1, 10000); - } else { - // Angular already updated the value, revert: - $rootScope.service.endpoints[endpoint_index].method = 'GET'; - } - } - }; - /** * The setNoOpEncoding is called when the backend or the endpoint change their encoding. * It deletes all backend configuration and adds a backend with no-op. diff --git a/src/app/designer.module.js b/src/app/designer.module.js index b47314a..1479397 100644 --- a/src/app/designer.module.js +++ b/src/app/designer.module.js @@ -42,6 +42,10 @@ templateUrl: '/src/app/forms/api-keys.html', controller: 'KrakenDesignerController' }) + .when('/monetization', { + templateUrl: '/src/app/forms/monetization.html', + controller: 'KrakenDesignerController' + }) .otherwise({ redirectTo: '/' }); diff --git a/src/app/forms/endpoints.html b/src/app/forms/endpoints.html index b48b79d..c080fbe 100644 --- a/src/app/forms/endpoints.html +++ b/src/app/forms/endpoints.html @@ -48,8 +48,7 @@