🐛 Fix insight

This commit is contained in:
2026-01-02 20:32:45 +08:00
parent 9c75394aa6
commit 9ecc64352c
2 changed files with 56 additions and 48 deletions

View File

@@ -1,4 +1,5 @@
using DysonNetwork.Insight;
using DysonNetwork.Insight.Reader;
using DysonNetwork.Insight.Startup;
using DysonNetwork.Shared.Auth;
using DysonNetwork.Shared.Http;
@@ -11,9 +12,6 @@ builder.AddServiceDefaults();
builder.ConfigureAppKestrel(builder.Configuration);
builder.Services.AddGrpc();
builder.Services.AddGrpcReflection();
builder.Services.AddControllers();
builder.Services.AddAppServices();
builder.Services.AddAppAuthentication();
@@ -41,6 +39,10 @@ using (var scope = app.Services.CreateScope())
await db.Database.MigrateAsync();
}
app.MapGrpcService<WebReaderGrpcService>();
app.MapGrpcService<WebArticleGrpcService>();
app.MapGrpcService<WebFeedGrpcService>();
app.ConfigureAppMiddleware(builder.Configuration);
app.UseSwaggerManifest("DysonNetwork.Insight");