Commit d7e5e130 by shipengwei

Merge branch 'master' of git.aipark.com:eoc-group/dotnet-cicd-demo

parents 83757f6f 27fe0312
namespace DotNetCicdDemo
{
public class Program
......@@ -7,11 +6,9 @@ namespace DotNetCicdDemo
{
var builder = WebApplication.CreateBuilder(args);
// Add services to the container.
builder.WebHost.UseUrls("http://*");
builder.Services.AddControllers();
// Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle
builder.Services.AddEndpointsApiExplorer();
builder.Services.AddSwaggerGen(option =>
{
......@@ -20,7 +17,6 @@ namespace DotNetCicdDemo
var app = builder.Build();
// Configure the HTTP request pipeline.
//if (app.Environment.IsDevelopment())
{
app.UseSwagger();
......@@ -33,7 +29,6 @@ namespace DotNetCicdDemo
app.UseAuthorization();
app.MapControllers();
app.Run();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment