AB#8522 - Clean up

This commit is contained in:
Bjarke Berg
2020-03-31 10:57:56 +02:00
parent 117bfd1f12
commit a6d43f4fd5
3 changed files with 15 additions and 34 deletions

View File

@@ -2,6 +2,7 @@
using Microsoft.AspNetCore.Mvc;
using Umbraco.Core.Runtime;
using Umbraco.Web.BackOffice.Filters;
using Umbraco.Web.Common.ActionResults;
namespace Umbraco.Web.BackOffice.Controllers
{
@@ -31,21 +32,5 @@ namespace Umbraco.Web.BackOffice.Controllers
return new JavaScriptResult(result);
}
public IActionResult Reset()
{
_runtimeMinifier.Reset();
return Content("OK");
}
}
public class JavaScriptResult : ContentResult
{
public JavaScriptResult(string script)
{
this.Content = script;
this.ContentType = "application/javascript";
}
}
}