mirror of
https://github.com/claunia/marechai.git
synced 2025-12-16 19:14:25 +00:00
Correct areas routing.
This commit is contained in:
@@ -38,7 +38,7 @@
|
|||||||
<h2>Index</h2>
|
<h2>Index</h2>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<a asp-area="Admin" asp-action="Create">Create New</a>
|
<a asp-action="Create">Create New</a>
|
||||||
</p>
|
</p>
|
||||||
<table class="table">
|
<table class="table">
|
||||||
<thead>
|
<thead>
|
||||||
|
|||||||
@@ -66,10 +66,10 @@ namespace cicm_web
|
|||||||
|
|
||||||
app.UseStaticFiles();
|
app.UseStaticFiles();
|
||||||
|
|
||||||
app.UseMvc(routes => { routes.MapRoute("default", "{controller=Home}/{action=Index}/{id?}").MapRoute(
|
app.UseMvc(routes => { routes.MapRoute(
|
||||||
name: "areas",
|
name: "areas",
|
||||||
template: "{area:exists}/{controller=Home}/{action=Index}/{id?}"
|
template: "{area:exists}/{controller=Home}/{action=Index}/{id?}"
|
||||||
); });
|
).MapRoute("default", "{controller=Home}/{action=Index}/{id?}"); });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk.Web">
|
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>netcoreapp2.1</TargetFramework>
|
<TargetFramework>netcoreapp2.1</TargetFramework>
|
||||||
<Version>3.0.99.327</Version>
|
<Version>3.0.99.330</Version>
|
||||||
<Company>Canary Islands Computer Museum</Company>
|
<Company>Canary Islands Computer Museum</Company>
|
||||||
<Copyright>Copyright © 2003-2018 Natalia Portillo</Copyright>
|
<Copyright>Copyright © 2003-2018 Natalia Portillo</Copyright>
|
||||||
<Product>Canary Islands Computer Museum Website</Product>
|
<Product>Canary Islands Computer Museum Website</Product>
|
||||||
|
|||||||
Reference in New Issue
Block a user