diff --git a/src/Umbraco.Web.UI.Client/src/common/resources/template.resource.js b/src/Umbraco.Web.UI.Client/src/common/resources/template.resource.js deleted file mode 100644 index d6fec8640f..0000000000 --- a/src/Umbraco.Web.UI.Client/src/common/resources/template.resource.js +++ /dev/null @@ -1,82 +0,0 @@ -/** - * @ngdoc service - * @name umbraco.resources.stylesheetResource - * @description service to retrieve available stylesheets - * - * - **/ -function templateResource($q, $http, umbRequestHelper) { - - //the factory object returned - return { - - /** - * @ngdoc method - * @name umbraco.resources.stylesheetResource#getAll - * @methodOf umbraco.resources.stylesheetResource - * - * @description - * Gets all registered stylesheets - * - * ##usage - *
- * stylesheetResource.getAll()
- * .then(function(stylesheets) {
- * alert('its here!');
- * });
- *
- *
- * @returns {Promise} resourcePromise object containing the stylesheets.
- *
- */
- getAll: function () {
- return umbRequestHelper.resourcePromise(
- $http.get(
- umbRequestHelper.getApiUrl(
- "templateApiBaseUrl",
- "GetAll")),
- 'Failed to retrieve stylesheets ');
- },
-
- /**
- * @ngdoc method
- * @name umbraco.resources.stylesheetResource#getRulesByName
- * @methodOf umbraco.resources.stylesheetResource
- *
- * @description
- * Returns all defined child rules for a stylesheet with a given name
- *
- * ##usage
- *
- * stylesheetResource.getRulesByName("ie7stylesheet")
- * .then(function(rules) {
- * alert('its here!');
- * });
- *
- *
- * @returns {Promise} resourcePromise object containing the rules.
- *
- */
- getById: function (id) {
- return umbRequestHelper.resourcePromise(
- $http.get(
- umbRequestHelper.getApiUrl(
- "templateApiBaseUrl",
- "GetById",
- [{ id: id }])),
- 'Failed to retreive template ');
- },
-
- saveAndRender: function(html, templateId, pageId){
- return umbRequestHelper.resourcePromise(
- $http.post(
- umbRequestHelper.getApiUrl(
- "templateApiBaseUrl",
- "PostSaveAndRender"),
- {templateId: templateId, pageId: pageId, html: html }),
- 'Failed to retreive template ');
- }
- };
-}
-
-angular.module('umbraco.resources').factory('templateResource', templateResource);
diff --git a/src/Umbraco.Web/Editors/BackOfficeController.cs b/src/Umbraco.Web/Editors/BackOfficeController.cs
index 0e7d48d3d9..91c26c603a 100644
--- a/src/Umbraco.Web/Editors/BackOfficeController.cs
+++ b/src/Umbraco.Web/Editors/BackOfficeController.cs
@@ -196,11 +196,6 @@ namespace Umbraco.Web.Editors
"stylesheetApiBaseUrl", Url.GetUmbracoApiServiceBaseUrl