mirror of
https://github.com/bitwarden/server
synced 2025-12-12 14:23:38 +00:00
Use a header to track seeded data. This has benefits client side in simplicity and allows us to track entities added during a test, as long as they include the play id header.
This commit is contained in:
@@ -6,6 +6,7 @@ using Bit.SharedWeb.Utilities;
|
||||
var builder = WebApplication.CreateBuilder(args);
|
||||
|
||||
builder.Services.AddControllers();
|
||||
builder.Services.AddHttpContextAccessor();
|
||||
|
||||
var globalSettings = builder.Services.AddGlobalSettingsServices(builder.Configuration, builder.Environment);
|
||||
|
||||
@@ -26,6 +27,9 @@ builder.Services.AddQueries();
|
||||
|
||||
var app = builder.Build();
|
||||
|
||||
// Add PlayIdMiddleware services
|
||||
app.UseMiddleware<PlayIdMiddleware>();
|
||||
|
||||
// Configure the HTTP request pipeline.
|
||||
if (!app.Environment.IsDevelopment())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user