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
|
### Map Clinet
|
||||||
cd src/MapClient
|
cd src/MapClient
|
||||||
|
|
||||||
|
npm install
|
||||||
npm run build
|
npm run build
|
||||||
|
|
||||||
### Communiction Control
|
### Communiction Control
|
||||||
|
|
|
@ -57,11 +57,8 @@ using (var scope = app.Services.CreateScope())
|
||||||
app.UseExceptionHandler();
|
app.UseExceptionHandler();
|
||||||
|
|
||||||
// Configure the HTTP request pipeline.
|
// Configure the HTTP request pipeline.
|
||||||
if (app.Environment.IsDevelopment())
|
app.UseSwagger();
|
||||||
{
|
app.UseSwaggerUI();
|
||||||
app.UseSwagger();
|
|
||||||
app.UseSwaggerUI();
|
|
||||||
}
|
|
||||||
|
|
||||||
app.UseCors(corsPolicyName);
|
app.UseCors(corsPolicyName);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue