mirror of
https://github.com/DorkSquadRR/DorkNet.git
synced 2026-10-25 23:18:44 -07:00
Add microservices scaffold
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
using DorkNet.Contracts;
|
||||
using DorkNet.ServiceDefaults;
|
||||
|
||||
var builder = WebApplication.CreateBuilder(args);
|
||||
builder.Configuration.AddJsonFile("appsettings.Local.json",
|
||||
optional: true, reloadOnChange: true);
|
||||
|
||||
builder.AddDorkNetServiceDefaults(ServiceNames.Notify);
|
||||
|
||||
var app = builder.Build();
|
||||
|
||||
app.MapDorkNetServiceDefaults();
|
||||
app.MapGet("/internal/notify/capabilities", () =>
|
||||
Results.Ok(new ServiceCapabilityResponse(
|
||||
ServiceNames.Notify,
|
||||
[
|
||||
"signalr-edge",
|
||||
"notification-fanout",
|
||||
"presence",
|
||||
"player-request-logs",
|
||||
],
|
||||
[
|
||||
"/hub/v1",
|
||||
"/api/notification/*",
|
||||
"/player/*presence*",
|
||||
])));
|
||||
|
||||
app.Run();
|
||||
Reference in New Issue
Block a user