mirror of
https://github.com/DorkSquadRR/DorkNet.git
synced 2026-10-26 15:38:45 -07:00
Split remaining service routes
This commit is contained in:
@@ -1,15 +1,18 @@
|
||||
using DorkNet.Contracts;
|
||||
using DorkNet.ServiceDefaults;
|
||||
using DorkNet.Server.Startup;
|
||||
|
||||
var builder = WebApplication.CreateBuilder(args);
|
||||
builder.Configuration.AddJsonFile("appsettings.Local.json",
|
||||
optional: true, reloadOnChange: true);
|
||||
|
||||
builder.AddDorkNetServiceDefaults(ServiceNames.Identity);
|
||||
builder.AddDorkNetServices();
|
||||
|
||||
var app = builder.Build();
|
||||
|
||||
app.MapDorkNetServiceDefaults();
|
||||
await app.RunDatabaseBootstrapAsync();
|
||||
app.MapDorkNetServiceDefaults(mapPublicHealth: false);
|
||||
app.MapGet("/internal/identity/capabilities", () =>
|
||||
Results.Ok(new ServiceCapabilityResponse(
|
||||
ServiceNames.Identity,
|
||||
@@ -26,4 +29,7 @@ app.MapGet("/internal/identity/capabilities", () =>
|
||||
"/api/auth/*",
|
||||
])));
|
||||
|
||||
app.UseDorkNetRouteOwnershipGuard(ServiceNames.Identity);
|
||||
app.UseDorkNetPipeline();
|
||||
|
||||
app.Run();
|
||||
|
||||
Reference in New Issue
Block a user