mirror of
https://github.com/DorkSquadRR/DorkNet.git
synced 2026-10-26 07:28:45 -07:00
Add microservices scaffold
This commit is contained in:
@@ -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();
|
||||
Reference in New Issue
Block a user