forked from SoDOff-Project/sodoff
reference older version of CoreAdmin
This commit is contained in:
parent
3c7ce2e537
commit
5332776795
@ -44,6 +44,8 @@ builder.Services.AddScoped<ModerationService>();
|
|||||||
builder.Services.AddScoped<MessagingService>();
|
builder.Services.AddScoped<MessagingService>();
|
||||||
builder.Services.AddScoped<BuddyService>();
|
builder.Services.AddScoped<BuddyService>();
|
||||||
|
|
||||||
|
builder.Services.AddCoreAdmin();
|
||||||
|
|
||||||
bool assetServer = builder.Configuration.GetSection("AssetServer").GetValue<bool>("Enabled");
|
bool assetServer = builder.Configuration.GetSection("AssetServer").GetValue<bool>("Enabled");
|
||||||
string assetIP = builder.Configuration.GetSection("AssetServer").GetValue<string>("ListenIP");
|
string assetIP = builder.Configuration.GetSection("AssetServer").GetValue<string>("ListenIP");
|
||||||
int assetPort = builder.Configuration.GetSection("AssetServer").GetValue<int>("Port");
|
int assetPort = builder.Configuration.GetSection("AssetServer").GetValue<int>("Port");
|
||||||
@ -70,4 +72,9 @@ app.UseAuthorization();
|
|||||||
|
|
||||||
app.MapControllers();
|
app.MapControllers();
|
||||||
|
|
||||||
|
app.UseStaticFiles();
|
||||||
|
app.MapDefaultControllerRoute();
|
||||||
|
|
||||||
|
app.UseCoreAdminCustomUrl("admin");
|
||||||
|
|
||||||
app.Run();
|
app.Run();
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="CoreAdmin" Version="3.0.0" />
|
<PackageReference Include="CoreAdmin" Version="2.7.1" />
|
||||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="7.0.20">
|
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="7.0.20">
|
||||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||||
<PrivateAssets>all</PrivateAssets>
|
<PrivateAssets>all</PrivateAssets>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user