Browse Source

WebSPA: minor style fixes

pull/2064/head
Reuben Bond 1 year ago
committed by Tarun Jain
parent
commit
68d0df2e2f
1 changed files with 2 additions and 4 deletions
  1. +2
    -4
      src/Web/WebSPA/Program.cs

+ 2
- 4
src/Web/WebSPA/Program.cs View File

@ -62,8 +62,7 @@ app.Use(next => context =>
{ {
string path = context.Request.Path.Value; string path = context.Request.Path.Value;
if (
string.Equals(path, "/", StringComparison.OrdinalIgnoreCase) ||
if (string.Equals(path, "/", StringComparison.OrdinalIgnoreCase) ||
string.Equals(path, "/index.html", StringComparison.OrdinalIgnoreCase)) string.Equals(path, "/index.html", StringComparison.OrdinalIgnoreCase))
{ {
// The request token has to be sent as a JavaScript-readable cookie, // The request token has to be sent as a JavaScript-readable cookie,
@ -110,7 +109,7 @@ app.MapHealthChecks("/hc", new HealthCheckOptions()
ResponseWriter = UIResponseWriter.WriteHealthCheckUIResponse ResponseWriter = UIResponseWriter.WriteHealthCheckUIResponse
}); });
// Handles all still unnatended (by any other middleware) requests by returning the default page of the SPA (wwwroot/index.html).
// Handles all still unattended (by any other middleware) requests by returning the default page of the SPA (wwwroot/index.html).
app.UseSpa(spa => app.UseSpa(spa =>
{ {
// To learn more about options for serving an Angular SPA from ASP.NET Core, // To learn more about options for serving an Angular SPA from ASP.NET Core,
@ -121,7 +120,6 @@ app.UseSpa(spa =>
if (app.Environment.IsDevelopment()) if (app.Environment.IsDevelopment())
{ {
// use the SpaServices extension method for angular, that will make the application to run "ng serve" for us, when in development. // use the SpaServices extension method for angular, that will make the application to run "ng serve" for us, when in development.
spa.UseAngularCliServer(npmScript: "start"); spa.UseAngularCliServer(npmScript: "start");
} }


Loading…
Cancel
Save