Removes hard coded api url from rte embed

This commit is contained in:
Tim Geyssens
2014-01-28 16:18:30 +01:00
parent fcc115004e
commit 93a4e8f426

View File

@@ -1,4 +1,4 @@
angular.module("umbraco").controller("Umbraco.Dialogs.RteEmbedController", function ($scope, $http) {
angular.module("umbraco").controller("Umbraco.Dialogs.RteEmbedController", function ($scope, $http, umbRequestHelper) {
$scope.form = {};
$scope.form.url = "";
$scope.form.width = 360;
@@ -20,7 +20,7 @@
$scope.form.info = "";
$scope.form.success = false;
$http({ method: 'GET', url: '/umbraco/UmbracoApi/RteEmbed/GetEmbed', params: { url: $scope.form.url, width: $scope.form.width, height: $scope.form.height } })
$http({ method: 'GET', url: umbRequestHelper.getApiUrl("embedApiBaseUrl", "GetEmbed"), params: { url: $scope.form.url, width: $scope.form.width, height: $scope.form.height } })
.success(function (data) {
$scope.form.preview = "";