stabilizaiton work - projects rework for maintenanceability and ui livening
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
|
||||
using Serilog;
|
||||
using StellaOps.Auth.ServerIntegration;
|
||||
using StellaOps.Router.AspNet;
|
||||
using StellaOps.VexHub.Core.Extensions;
|
||||
using StellaOps.VexHub.Persistence.Extensions;
|
||||
@@ -53,7 +54,11 @@ builder.Services.TryAddStellaRouter(
|
||||
version: System.Reflection.Assembly.GetExecutingAssembly().GetName().Version?.ToString() ?? "1.0.0",
|
||||
routerOptions: routerOptions);
|
||||
|
||||
builder.Services.AddStellaOpsCors(builder.Environment, builder.Configuration);
|
||||
|
||||
builder.TryAddStellaOpsLocalBinding("vexhub");
|
||||
var app = builder.Build();
|
||||
app.LogStellaOpsLocalHostname("vexhub");
|
||||
|
||||
// Configure the HTTP request pipeline
|
||||
if (app.Environment.IsDevelopment())
|
||||
@@ -68,6 +73,7 @@ app.UseSerilogRequestLogging();
|
||||
app.UseVexHubRateLimiting();
|
||||
|
||||
// Add authentication and authorization
|
||||
app.UseStellaOpsCors();
|
||||
app.UseAuthentication();
|
||||
app.UseAuthorization();
|
||||
app.TryUseStellaRouter(routerOptions);
|
||||
|
||||
Reference in New Issue
Block a user