AB#6233 - reorderen routing

This commit is contained in:
Bjarke Berg
2020-05-07 15:24:46 +02:00
parent e121ce136f
commit 6a078ee09e
2 changed files with 7 additions and 4 deletions

View File

@@ -63,6 +63,7 @@ namespace Umbraco.Web.UI.BackOffice
services.AddMvc(options =>
{
options.Filters.Add<HttpResponseExceptionFilter>();
}).SetCompatibilityVersion(CompatibilityVersion.Version_3_0)
.AddNewtonsoftJson(options =>
{
@@ -114,15 +115,16 @@ namespace Umbraco.Web.UI.BackOffice
Action = "Default"
});
endpoints.MapControllerRoute(
name: "default",
pattern: "{controller}/{action=Index}/{id?}");
endpoints.MapControllerRoute("Install", "/install/{controller}/{Action}", defaults:new { Area = "Install"});
//TODO register routing correct: Name must be like this
endpoints.MapControllerRoute("umbraco-api-UmbracoInstall-InstallApi", "/install/api/{Action}", defaults:new { Area = "Install", Controller = "InstallApi"});
endpoints.MapControllerRoute(
name: "default",
pattern: "{controller}/{action=Index}/{id?}");
endpoints.MapGet("/", async context =>
{
var profilerHtml = app.ApplicationServices.GetRequiredService<IProfilerHtml>();