fix: align backend APIs and upload flow
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
using FluentValidation;
|
||||
using FluentValidation;
|
||||
using FluentValidation.AspNetCore;
|
||||
using IM.ASPNETCore;
|
||||
using IM.Commons;
|
||||
@@ -14,6 +14,7 @@ using RedLockNet.SERedis.Configuration;
|
||||
using StackExchange.Redis;
|
||||
using Swashbuckle.AspNetCore.SwaggerGen;
|
||||
using Winton.Extensions.Configuration.Consul;
|
||||
using IM.InitCommon.Management;
|
||||
|
||||
namespace IM.InitCommon
|
||||
{
|
||||
@@ -21,7 +22,7 @@ namespace IM.InitCommon
|
||||
{
|
||||
public static void ConfigureDbConfiguration(this WebApplicationBuilder builder)
|
||||
{
|
||||
builder.Host.ConfigureAppConfiguration((hostCtx, configbuilder) =>
|
||||
if (!builder.Configuration.GetValue("Consul:Enabled", true)) return; builder.Host.ConfigureAppConfiguration((hostCtx, configbuilder) =>
|
||||
{
|
||||
var env = hostCtx.HostingEnvironment;
|
||||
|
||||
@@ -66,6 +67,7 @@ namespace IM.InitCommon
|
||||
{
|
||||
var services = builder.Services;
|
||||
var configuration = builder.Configuration;
|
||||
services.AddManagementRuntime();
|
||||
|
||||
|
||||
var assemblies = ReflectionHelper.GetAllReferencedAssemblies();
|
||||
|
||||
Reference in New Issue
Block a user