-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7b1ea75
commit c624f24
Showing
3 changed files
with
39 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,32 @@ | ||
using Microsoft.AspNetCore.Builder; | ||
using Microsoft.Extensions.Hosting; | ||
using PlaceAPi.Identity; | ||
using PlaceAPi.Identity.Authenticate.Composition; | ||
using PlaceAPi.Identity.OpenApi; | ||
|
||
WebApplicationBuilder builder = WebApplication.CreateBuilder(args); | ||
|
||
|
||
{ | ||
builder.Services.RegisterPlace(builder); | ||
builder.Services.AddOpenApiFeature(builder.Configuration); | ||
builder.AddServiceDefaults(); | ||
} | ||
|
||
WebApplication app = builder.Build(); | ||
|
||
|
||
{ | ||
app.UseHttpSecurity(); | ||
app.WithAuthenticationEndpoints(); | ||
app.UsePlaceServices(); | ||
if (app.Environment.IsDevelopment()) | ||
{ | ||
app.WithSwaggerUI(); | ||
app.UseDeveloperExceptionPage(); | ||
} | ||
|
||
await app.RunAsync(); | ||
} | ||
|
||
public partial class Program { } | ||
using Microsoft.AspNetCore.Builder; | ||
using Microsoft.Extensions.Hosting; | ||
using PlaceAPi.Identity; | ||
using PlaceAPi.Identity.Authenticate.Composition; | ||
using PlaceAPi.Identity.OpenApi; | ||
|
||
WebApplicationBuilder builder = WebApplication.CreateBuilder(args); | ||
|
||
|
||
{ | ||
builder.Services.RegisterPlace(builder); | ||
builder.Services.AddOpenApiFeature(builder.Configuration); | ||
builder.AddServiceDefaults(); | ||
} | ||
|
||
WebApplication app = builder.Build(); | ||
|
||
|
||
{ | ||
app.UseHttpSecurity(); | ||
app.WithAuthenticationEndpoints(); | ||
app.UsePlaceServices(); | ||
if (app.Environment.IsDevelopment()) | ||
{ | ||
app.WithSwaggerUI(); | ||
app.UseDeveloperExceptionPage(); | ||
} | ||
|
||
await app.RunAsync(); | ||
} | ||
|
||
public partial class Program { } |