fix: align backend APIs and upload flow
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
using IM.InitCommon.Management;
|
||||
|
||||
using IM.InitCommon;
|
||||
using Microsoft.Extensions.FileProviders;
|
||||
@@ -20,6 +21,7 @@ namespace FileService.WebApi
|
||||
builder.ConfigExtraServices();
|
||||
|
||||
var app = builder.Build();
|
||||
if (app.ApplyMigrationsIfRequested(args)) return;
|
||||
|
||||
// Configure the HTTP request pipeline.
|
||||
if (app.Environment.IsDevelopment())
|
||||
@@ -29,6 +31,7 @@ namespace FileService.WebApi
|
||||
}
|
||||
|
||||
app.UseAppDefault();
|
||||
app.MapManagementHealth();
|
||||
|
||||
// 仅 FileService 暴露公开桶目录为静态直链,不动共享 UseAppDefault
|
||||
UsePublicStaticFiles(app);
|
||||
|
||||
Reference in New Issue
Block a user