mirror of
https://github.com/DorkSquadRR/DorkNet.git
synced 2026-10-26 07:28:45 -07:00
29 lines
725 B
C#
29 lines
725 B
C#
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();
|