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 `<Version>`, `<FileVersion>`,
and `<AssemblyVersion>` 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.
This commit is contained in:
2026-06-01 10:39:44 +02:00
parent ba468c3f99
commit 5dc32a02a9
2 changed files with 4 additions and 12 deletions

View File

@@ -10,9 +10,9 @@
<Authors>Digital Data GmbH</Authors>
<Company>Digital Data GmbH</Company>
<Product>EnvelopeGenerator.GeneratorAPI</Product>
<Version>1.3.0</Version>
<FileVersion>1.3.0</FileVersion>
<AssemblyVersion>1.3.0</AssemblyVersion>
<Version>1.3.1</Version>
<FileVersion>1.3.1</FileVersion>
<AssemblyVersion>1.3.1</AssemblyVersion>
<PackageOutputPath>Copyright © 2025 Digital Data GmbH. All rights reserved.</PackageOutputPath>
<DocumentationFile>bin\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml</DocumentationFile>
</PropertyGroup>

View File

@@ -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();
}