From bb71c558b19b7f68fc3ee6aa5bc665a8f7ed0f29 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Mon, 29 Dec 2025 19:28:13 +0800 Subject: [PATCH] :bug: Fix activitypub route in gateway --- DysonNetwork.Gateway/Program.cs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/DysonNetwork.Gateway/Program.cs b/DysonNetwork.Gateway/Program.cs index 8b2e4d0..5bf5152 100644 --- a/DysonNetwork.Gateway/Program.cs +++ b/DysonNetwork.Gateway/Program.cs @@ -94,14 +94,8 @@ var specialRoutes = new[] { RouteId = "sphere-activitypub", ClusterId = "sphere", - Match = new RouteMatch { Path = "activitypub" } + Match = new RouteMatch { Path = "/activitypub/{**catch-all}" } }, - new RouteConfig - { - RouteId = "drive-tus", - ClusterId = "drive", - Match = new RouteMatch { Path = "/api/tus" } - } }; var apiRoutes = GatewayConstant.ServiceNames.Select(serviceName => @@ -192,4 +186,4 @@ app.MapReverseProxy().RequireRateLimiting("fixed"); app.MapControllers(); -app.Run(); \ No newline at end of file +app.Run();