src/fursvp.api/Startup.cs
/// <summary>
/// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
/// </summary>
/// <param name="app">The <see cref="IApplicationBuilder"/> instance to configure.</param>
/// <param name="env">The <see cref="IWebHostEnvironment"/> instance containing environment specific settings.</param>
This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
This method gets called by the runtime . Use this method to configure the HTTP request pipeline .
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
        {
            if (env.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();
            }
            else
            {
                app.UseHsts();
            }
            app.UseHttpsRedirection();
            app.UseStaticFiles();
            app.UseSpaStaticFiles();
            app.UseRouting();
            app.UseCors(x => x
                .AllowAnyOrigin()
                .AllowAnyMethod()
                .AllowAnyHeader());
            app.UseAuthentication();
            app.UseEndpoints(endpoints =>
            {
                endpoints.MapControllers();
            });
            app.UseSpa(spa =>
            {
                spa.Options.SourcePath = "ClientApp";
                if (env.IsDevelopment())
                {
                    spa.UseReactDevelopmentServer(npmScript: "start");
                }
            });
        }
public void Configure ( IApplicationBuilder app , IWebHostEnvironment env ) { if ( env . IsDevelopment ( ) ) { app . UseDeveloperExceptionPage ( ) ; } else { app . UseHsts ( ) ; } app . UseHttpsRedirection ( ) ; app . UseStaticFiles ( ) ; app . UseSpaStaticFiles ( ) ; app . UseRouting ( ) ; app . UseCors ( x => x . AllowAnyOrigin ( ) . AllowAnyMethod ( ) . AllowAnyHeader ( ) ) ; app . UseAuthentication ( ) ; app . UseEndpoints ( endpoints => { endpoints . MapControllers ( ) ; } ) ; app . UseSpa ( spa => { spa . Options . SourcePath = " " ; if ( env . IsDevelopment ( ) ) { spa . UseReactDevelopmentServer ( npmScript : " " ) ; } } ) ; }
This method gets called by the runtime.
This method gets called by the runtime .
// The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts.
app
IApplicationBuilder
The  instance to configure.
The instance to configure .
env
IWebHostEnvironment
The  instance containing environment specific settings.
The instance containing environment specific settings .