Radicade Public Code

This commit is contained in:
JogmansonReal
2026-10-16 23:33:13 -07:00
commit 55175acdf6
832 changed files with 363261 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
namespace RadicadeServer.API.Notifications
{
public static class NotifyHubRoutes
{
public static readonly string[] Paths =
{
"/notify/hub/v1",
"/notify/hub",
"/notifyhub/v1",
"/hub/v1",
"/hub",
};
public static bool IsHubPath(string? path)
{
if (string.IsNullOrEmpty(path)) return false;
foreach (var route in Paths)
{
if (path.Equals(route, StringComparison.OrdinalIgnoreCase)) return true;
if (path.StartsWith(route + "/", StringComparison.OrdinalIgnoreCase)) return true;
}
return false;
}
}
}