update 默认路由配置文件
This commit is contained in:
@@ -19,4 +19,10 @@
|
||||
<ProjectReference Include="..\Ewide.Database.Migrations\Ewide.Database.Migrations.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<None Update="core.settings.json">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
@@ -57,9 +57,15 @@ namespace Ewide.Web.Core
|
||||
var defalutRoute = new List<string>()
|
||||
{
|
||||
"getLoginUser",
|
||||
"logout"
|
||||
"logout",
|
||||
"sysFileInfo:upload",
|
||||
"sysFileInfo:download",
|
||||
"sysFileInfo:preview",
|
||||
"sysUser:updateInfo"
|
||||
};
|
||||
|
||||
var a = App.Configuration["CoreSettings:DefalutRoute"];
|
||||
|
||||
if (defalutRoute.Contains(routeName)) return true;
|
||||
|
||||
// 获取用户权限集合(按钮或API接口)
|
||||
|
||||
12
Api/Ewide.Web.Core/core.settings.json
Normal file
12
Api/Ewide.Web.Core/core.settings.json
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"CoreSettings": {
|
||||
"DefalutRoute": [
|
||||
"getLoginUser",
|
||||
"logout",
|
||||
"sysFileInfo:upload",
|
||||
"sysFileInfo:download",
|
||||
"sysFileInfo:preview",
|
||||
"sysUser:updateInfo"
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user