https://dev.azure.com/umbraco/D-Team%20Tracker/_workitems/edit/6587 - Moved controllers: TagsDataController, RteEmbedController, RichTextPreValueController, NestedContentController, WebProfilingController + Moved compose of MapDefinitionCollectionBuilder into core, and uncommented missing map definitions

This commit is contained in:
Bjarke Berg
2020-05-25 13:41:05 +02:00
parent e4c8e2009c
commit ee3615e36d
15 changed files with 165 additions and 127 deletions

View File

@@ -0,0 +1,28 @@
using Umbraco.Core.Hosting;
using Umbraco.Web.BackOffice.Filters;
using Umbraco.Web.Editors;
namespace Umbraco.Web.BackOffice.Profiling
{
/// <summary>
/// The API controller used to display the state of the web profiler
/// </summary>
[UmbracoApplicationAuthorizeAttribute(Core.Constants.Applications.Settings)]
public class WebProfilingController : UmbracoAuthorizedJsonController
{
private readonly IHostingEnvironment _hosting;
public WebProfilingController(IHostingEnvironment hosting)
{
_hosting = hosting;
}
public object GetStatus()
{
return new
{
Enabled = _hosting.IsDebugMode
};
}
}}