Configure ASP.NET for the API to work #7
@ -84,6 +84,11 @@ public class Program
|
|||||||
|
|
||||||
var app = builder.Build();
|
var app = builder.Build();
|
||||||
|
|
||||||
|
#if DEBUG
|
||||||
|
// Write configurations
|
||||||
|
foreach (var item in app.Configuration.AsEnumerable())
|
||||||
|
Console.WriteLine($"{item.Key}:{item.Value}");
|
||||||
|
#endif
|
||||||
// Configure the HTTP request pipeline.
|
// Configure the HTTP request pipeline.
|
||||||
if (app.Environment.IsDevelopment())
|
if (app.Environment.IsDevelopment())
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user