From ff5d6770d929e52e7fb2d756f213b8610f1e9902 Mon Sep 17 00:00:00 2001 From: Bjarke Berg Date: Mon, 30 Mar 2020 06:34:56 +0200 Subject: [PATCH] AB#5820 - Clean up and remove unnecessary stuff for this task --- .../Controllers/BackOfficeController.cs | 14 ------------- src/Umbraco.Web.UI.NetCore/Startup.cs | 9 --------- .../Umbraco.Web.UI.NetCore.csproj | 1 + .../Views/BackOffice/Index.cshtml | 20 ------------------- 4 files changed, 1 insertion(+), 43 deletions(-) delete mode 100644 src/Umbraco.Web.BackOffice/Controllers/BackOfficeController.cs delete mode 100644 src/Umbraco.Web.UI.NetCore/Views/BackOffice/Index.cshtml diff --git a/src/Umbraco.Web.BackOffice/Controllers/BackOfficeController.cs b/src/Umbraco.Web.BackOffice/Controllers/BackOfficeController.cs deleted file mode 100644 index 83f6eda24a..0000000000 --- a/src/Umbraco.Web.BackOffice/Controllers/BackOfficeController.cs +++ /dev/null @@ -1,14 +0,0 @@ -using Microsoft.AspNetCore.Mvc; -using Umbraco.Composing; - -namespace Umbraco.Web.BackOffice.Controllers -{ - public class BackOfficeController : Controller - { - // GET - public IActionResult Index() - { - return View(); - } - } -} diff --git a/src/Umbraco.Web.UI.NetCore/Startup.cs b/src/Umbraco.Web.UI.NetCore/Startup.cs index e0440e39ea..f674832952 100644 --- a/src/Umbraco.Web.UI.NetCore/Startup.cs +++ b/src/Umbraco.Web.UI.NetCore/Startup.cs @@ -75,15 +75,6 @@ namespace Umbraco.Web.UI.BackOffice app.UseRouting(); app.UseEndpoints(endpoints => { - endpoints.MapControllerRoute( - "backoffice-spa", - "/umbraco", - new - { - Controller = "BackOffice", - Action = "Index" - } - ); endpoints.MapGet("/", async context => { await context.Response.WriteAsync($"Hello World!{Current.Profiler.Render()}"); diff --git a/src/Umbraco.Web.UI.NetCore/Umbraco.Web.UI.NetCore.csproj b/src/Umbraco.Web.UI.NetCore/Umbraco.Web.UI.NetCore.csproj index abfb172763..0e6f2cf6b0 100644 --- a/src/Umbraco.Web.UI.NetCore/Umbraco.Web.UI.NetCore.csproj +++ b/src/Umbraco.Web.UI.NetCore/Umbraco.Web.UI.NetCore.csproj @@ -18,6 +18,7 @@ <_ContentIncludedByDefault Remove="wwwroot\~\App_Data\TEMP\TypesCache\umbraco-types.DESKTOP-2016.hash" /> <_ContentIncludedByDefault Remove="wwwroot\~\App_Data\TEMP\TypesCache\umbraco-types.DESKTOP-2016.list" /> + <_ContentIncludedByDefault Remove="Views\BackOffice\Index.cshtml" /> diff --git a/src/Umbraco.Web.UI.NetCore/Views/BackOffice/Index.cshtml b/src/Umbraco.Web.UI.NetCore/Views/BackOffice/Index.cshtml deleted file mode 100644 index 1b5007c005..0000000000 --- a/src/Umbraco.Web.UI.NetCore/Views/BackOffice/Index.cshtml +++ /dev/null @@ -1,20 +0,0 @@ -@using Umbraco.Composing - -@{ - Layout = null; -} - - - - - - title - - -
- Hello World - @Html.Raw(Current.Profiler.Render()) -
- - -