jhkjl
continuous-integration/drone/push Build is failing Details

pull/14/head
Victor Perez NGOUNOU 2 years ago
parent ab407012e3
commit 59d5c4fc34

@ -6,8 +6,13 @@
<ImplicitUsings>enable</ImplicitUsings>
<RootNamespace>Bowling_Api_Gateway</RootNamespace>
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
<OutputType>WinExe</OutputType>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(RunConfiguration)' == 'Bowling Api Gateway' " />
<ItemGroup>
<PackageReference Include="Ocelot" Version="18.0.0" />
</ItemGroup>

@ -19,6 +19,6 @@ app.UseOcelot();
//app.MapGet("/", () => "Hello World!");
app.MapGet("/", () => "Hello World!");
app.Run();

@ -11,7 +11,6 @@
"profiles": {
"Bowling Api Gateway": {
"commandName": "Project",
"dotnetRunMessages": true,
"launchBrowser": true,
"applicationUrl": "https://localhost:7003",
"environmentVariables": {
@ -26,4 +25,4 @@
}
}
}
}
}

@ -62,18 +62,13 @@ builder.Services.AddLogging(configure =>
var app = builder.Build();
// Configure the HTTP request pipeline.
if (app.Environment.IsDevelopment())
app.UseSwagger();
app.UseSwaggerUI(c =>
{
app.UseSwagger();
app.UseSwaggerUI(c =>
{
c.SwaggerEndpoint("/swagger/v1/swagger.json", "API du projet Bowling APP v1");
c.SwaggerEndpoint("/swagger/v2/swagger.json", "API du projet Bowling APP v2");
c.SwaggerEndpoint("/swagger/v1/swagger.json", "API du projet Bowling APP v1");
c.SwaggerEndpoint("/swagger/v2/swagger.json", "API du projet Bowling APP v2");
});
}
});
app.UseRouting();
app.UseEndpoints(endpoint=>

Loading…
Cancel
Save