AB#6233 - reorderen routing
This commit is contained in:
@@ -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>();
|
||||
|
||||
@@ -48,7 +48,8 @@
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="3.1.3" />
|
||||
<PackageReference Include="System.Configuration.ConfigurationManager" Version="4.7.0" />
|
||||
<!-- TODO: remove the reference to System.Configuration.ConfigurationManager when Examine/lucene dont need it-->
|
||||
<PackageReference Include="System.Configuration.ConfigurationManager" Version="4.7.0" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
Reference in New Issue
Block a user