enable swagger for prod
This commit is contained in:
parent
4df4437487
commit
2c50dc75eb
|
@ -64,6 +64,8 @@ dotnet run --project DevOpsProject/DevOpsProject.HiveMind.API.csproj
|
|||
|
||||
### Map Clinet
|
||||
cd src/MapClient
|
||||
|
||||
npm install
|
||||
npm run build
|
||||
|
||||
### Communiction Control
|
||||
|
|
|
@ -57,11 +57,8 @@ using (var scope = app.Services.CreateScope())
|
|||
app.UseExceptionHandler();
|
||||
|
||||
// Configure the HTTP request pipeline.
|
||||
if (app.Environment.IsDevelopment())
|
||||
{
|
||||
app.UseSwagger();
|
||||
app.UseSwaggerUI();
|
||||
}
|
||||
|
||||
app.UseCors(corsPolicyName);
|
||||
|
||||
|
|
Loading…
Reference in New Issue