mirror of
https://github.com/meysamhadeli/booking-microservices.git
synced 2026-04-15 13:51:09 +08:00
fix problem in versioning registration
This commit is contained in:
parent
27a0b74a9f
commit
840be7530a
@ -58,11 +58,6 @@ builder.AddMinimalEndpoints();
|
||||
|
||||
var app = builder.Build();
|
||||
|
||||
if (app.Environment.IsDevelopment())
|
||||
{
|
||||
app.UseCustomSwagger();
|
||||
}
|
||||
|
||||
app.UseSerilogRequestLogging();
|
||||
app.UseCorrelationId();
|
||||
app.UseRouting();
|
||||
@ -82,6 +77,11 @@ app.UseEndpoints(endpoints =>
|
||||
|
||||
app.MapGet("/", x => x.Response.WriteAsync(appOptions.Name));
|
||||
|
||||
if (app.Environment.IsDevelopment())
|
||||
{
|
||||
app.UseCustomSwagger();
|
||||
}
|
||||
|
||||
app.Run();
|
||||
|
||||
namespace Booking.Api
|
||||
|
||||
@ -69,11 +69,6 @@ builder.AddMinimalEndpoints();
|
||||
|
||||
var app = builder.Build();
|
||||
|
||||
if (app.Environment.IsDevelopment())
|
||||
{
|
||||
app.UseCustomSwagger();
|
||||
}
|
||||
|
||||
app.UseSerilogRequestLogging();
|
||||
app.UseCorrelationId();
|
||||
app.UseRouting();
|
||||
@ -85,7 +80,6 @@ app.UseCustomHealthCheck();
|
||||
app.UseAuthentication();
|
||||
app.UseAuthorization();
|
||||
|
||||
|
||||
app.MapMinimalEndpoints();
|
||||
|
||||
app.UseEndpoints(endpoints =>
|
||||
@ -95,6 +89,12 @@ app.UseEndpoints(endpoints =>
|
||||
});
|
||||
|
||||
app.MapGet("/", x => x.Response.WriteAsync(appOptions.Name));
|
||||
|
||||
if (app.Environment.IsDevelopment())
|
||||
{
|
||||
app.UseCustomSwagger();
|
||||
}
|
||||
|
||||
app.Run();
|
||||
|
||||
namespace Flight.Api
|
||||
|
||||
@ -51,11 +51,6 @@ builder.AddMinimalEndpoints();
|
||||
|
||||
var app = builder.Build();
|
||||
|
||||
if (app.Environment.IsDevelopment())
|
||||
{
|
||||
app.UseCustomSwagger();
|
||||
}
|
||||
|
||||
app.UseSerilogRequestLogging();
|
||||
app.UseMigration<IdentityContext>(env);
|
||||
app.UseCorrelationId();
|
||||
@ -78,6 +73,11 @@ app.UseEndpoints(endpoints =>
|
||||
|
||||
app.MapGet("/", x => x.Response.WriteAsync(appOptions.Name));
|
||||
|
||||
if (app.Environment.IsDevelopment())
|
||||
{
|
||||
app.UseCustomSwagger();
|
||||
}
|
||||
|
||||
app.Run();
|
||||
|
||||
namespace Identity.Api
|
||||
|
||||
@ -57,11 +57,6 @@ builder.AddMinimalEndpoints();
|
||||
|
||||
var app = builder.Build();
|
||||
|
||||
if (app.Environment.IsDevelopment())
|
||||
{
|
||||
app.UseCustomSwagger();
|
||||
}
|
||||
|
||||
app.UseSerilogRequestLogging();
|
||||
app.UseMigration<PassengerDbContext>(env);
|
||||
app.UseCorrelationId();
|
||||
@ -83,6 +78,11 @@ app.UseEndpoints(endpoints =>
|
||||
|
||||
app.MapGet("/", x => x.Response.WriteAsync(appOptions.Name));
|
||||
|
||||
if (app.Environment.IsDevelopment())
|
||||
{
|
||||
app.UseCustomSwagger();
|
||||
}
|
||||
|
||||
app.Run();
|
||||
|
||||
namespace Passenger.Api
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user