Skip to content

Commit

Permalink
Fix tenant id middleware order
Browse files Browse the repository at this point in the history
  • Loading branch information
aimenux committed Mar 6, 2024
1 parent 0c80fda commit f8d3607
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/WebApi/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ public void ConfigureServices(WebApplicationBuilder builder)

public void Configure(WebApplication app)
{
app.UseTenantId();

if (app.Environment.IsDevelopment())
{
app.UseDeveloperExceptionPage();
Expand All @@ -28,6 +26,7 @@ public void Configure(WebApplication app)

app.UseHttpsRedirection();
app.UseAuthorization();
app.UseTenantId();
app.MapControllers();
}
}

0 comments on commit f8d3607

Please sign in to comment.