From 5dc32a02a9c4b50ffb365e5b5e7f4eacf05ca5f7 Mon Sep 17 00:00:00 2001 From: TekH Date: Mon, 1 Jun 2026 10:39:44 +0200 Subject: [PATCH] Update version to 1.3.1 and simplify YARP proxy logic Updated the project version in `EnvelopeGenerator.API.csproj` from `1.3.0` to `1.3.1`, including ``, ``, and `` properties, indicating a minor update. Simplified the YARP proxy mapping in `Program.cs` by replacing the conditional `app.MapWhen` logic with a direct call to `app.MapReverseProxy()`, allowing all requests to be forwarded through the reverse proxy without path filtering. --- EnvelopeGenerator.API/EnvelopeGenerator.API.csproj | 6 +++--- EnvelopeGenerator.API/Program.cs | 10 +--------- 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/EnvelopeGenerator.API/EnvelopeGenerator.API.csproj b/EnvelopeGenerator.API/EnvelopeGenerator.API.csproj index ab02c37c..2fff2eef 100644 --- a/EnvelopeGenerator.API/EnvelopeGenerator.API.csproj +++ b/EnvelopeGenerator.API/EnvelopeGenerator.API.csproj @@ -10,9 +10,9 @@ Digital Data GmbH Digital Data GmbH EnvelopeGenerator.GeneratorAPI - 1.3.0 - 1.3.0 - 1.3.0 + 1.3.1 + 1.3.1 + 1.3.1 Copyright © 2025 Digital Data GmbH. All rights reserved. bin\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml diff --git a/EnvelopeGenerator.API/Program.cs b/EnvelopeGenerator.API/Program.cs index 191ff444..cc306a17 100644 --- a/EnvelopeGenerator.API/Program.cs +++ b/EnvelopeGenerator.API/Program.cs @@ -329,15 +329,7 @@ try app.MapControllers(); // Catch-all YARP proxy — only forward requests that are not swagger/scalar/openapi paths. - app.MapWhen( - ctx => - { - var path = ctx.Request.Path.Value ?? string.Empty; - return !path.StartsWith("/swagger", StringComparison.OrdinalIgnoreCase) && - !path.StartsWith("/scalar", StringComparison.OrdinalIgnoreCase) && - !path.StartsWith("/openapi", StringComparison.OrdinalIgnoreCase); - }, - branch => branch.UseRouting().UseEndpoints(e => e.MapReverseProxy())); + app.MapReverseProxy(); app.Run(); }