Creating a Project with Visual Studio:
* Remove unnecessary code snippet, to make code more simplifiedvscode/2_Getting_Started
parent
967dd600fe
commit
cb8cb6662e
|
@ -21,20 +21,10 @@ namespace DutchTreat
|
||||||
// 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)
|
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
|
||||||
{
|
{
|
||||||
if (env.IsDevelopment())
|
app.Run(async context =>
|
||||||
{
|
|
||||||
app.UseDeveloperExceptionPage();
|
|
||||||
}
|
|
||||||
|
|
||||||
app.UseRouting();
|
|
||||||
|
|
||||||
app.UseEndpoints(endpoints =>
|
|
||||||
{
|
|
||||||
endpoints.MapGet("/", async context =>
|
|
||||||
{
|
{
|
||||||
await context.Response.WriteAsync("Hello World!");
|
await context.Response.WriteAsync("Hello World!");
|
||||||
});
|
});
|
||||||
});
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue