【发布时间】:2018-12-30 09:12:27
【问题描述】:
我正在开发一个 ASP.NET MVC Core 应用程序。在这个应用程序中,我正在使用区域。我现在有多个区域:管理员(用于网站维护)、身份(用于身份剃须刀页面)和公共(用于访问者)。
我喜欢这些区域,但我不喜欢我需要访问者网址的事实:https://localhost:5001/Public/Home 和 https://localhost:5001/Public/Catalogue 等。
我更喜欢https://localhost:5001/Home 和https://localhost:5000/Catalogue 等网址。
除了网站的访问者部分之外,我可以使用哪些区域?
【问题讨论】:
标签: asp.net-core routes .net-core