Add microservices scaffold

This commit is contained in:
Alexa
2026-06-15 14:01:23 +03:00
parent 9342e2da99
commit 5f523db485
22 changed files with 567 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
using DorkNet.Contracts;
using DorkNet.ServiceDefaults;
var builder = WebApplication.CreateBuilder(args);
builder.Configuration.AddJsonFile("appsettings.Local.json",
optional: true, reloadOnChange: true);
builder.AddDorkNetServiceDefaults(ServiceNames.Identity);
var app = builder.Build();
app.MapDorkNetServiceDefaults();
app.MapGet("/internal/identity/capabilities", () =>
Results.Ok(new ServiceCapabilityResponse(
ServiceNames.Identity,
[
"accounts",
"auth",
"platform-login",
"jwt-issuance",
],
[
"/account/*",
"/api/account/*",
"/api/platformlogin/*",
"/api/auth/*",
])));
app.Run();