Skip to content

Commit

Permalink
Update to Map Static Assets Middleware (#371)
Browse files Browse the repository at this point in the history
  • Loading branch information
guardrex authored Oct 16, 2024
1 parent 1d66263 commit 11dde55
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion 9.0/BlazorSample_BlazorWebApp/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

app.UseHttpsRedirection();

app.UseStaticFiles();
app.MapStaticAssets();
app.UseAntiforgery();

app.MapRazorComponents<App>()
Expand Down
2 changes: 1 addition & 1 deletion 9.0/BlazorSignalRApp/BlazorSignalRApp/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

app.UseHttpsRedirection();

app.UseStaticFiles();
app.MapStaticAssets();
app.UseAntiforgery();

app.MapRazorComponents<App>()
Expand Down
2 changes: 1 addition & 1 deletion 9.0/BlazorWebAppCallWebApi/BlazorApp/BlazorApp/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@

app.UseHttpsRedirection();

app.UseStaticFiles();
app.MapStaticAssets();
app.UseAntiforgery();

// Set up API endpoints and methods
Expand Down
2 changes: 1 addition & 1 deletion 9.0/BlazorWebAppCallWebApi_Weather/BlazorApp/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

app.UseHttpsRedirection();

app.UseStaticFiles();
app.MapStaticAssets();
app.UseAntiforgery();

app.MapRazorComponents<App>()
Expand Down
2 changes: 1 addition & 1 deletion 9.0/BlazorWebAppEFCore/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@

app.UseHttpsRedirection();

app.UseStaticFiles();
app.MapStaticAssets();
app.UseAntiforgery();

app.MapRazorComponents<App>()
Expand Down
2 changes: 1 addition & 1 deletion 9.0/BlazorWebAppMovies/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@

app.UseHttpsRedirection();

app.UseStaticFiles();
app.MapStaticAssets();
app.UseAntiforgery();

app.MapRazorComponents<App>()
Expand Down
2 changes: 1 addition & 1 deletion 9.0/BlazorWebAppOidc/BlazorWebAppOidc/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@

app.UseHttpsRedirection();

app.UseStaticFiles();
app.MapStaticAssets();
app.UseAntiforgery();

app.MapGet("/weather-forecast", ([FromServices] IWeatherForecaster WeatherForecaster) =>
Expand Down
2 changes: 1 addition & 1 deletion 9.0/BlazorWebAppOidcBff/BlazorWebAppOidc/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@

app.UseHttpsRedirection();

app.UseStaticFiles();
app.MapStaticAssets();
app.UseAntiforgery();

app.MapDefaultEndpoints();
Expand Down

0 comments on commit 11dde55

Please sign in to comment.