Fix map route type

This commit is contained in:
2024-09-24 11:53:43 +02:00
parent 20ff1e7b8f
commit 43f78ddb9c
2 changed files with 2 additions and 2 deletions
@@ -195,7 +195,7 @@ public class MapEndpointGenerator : IIncrementalGenerator
}
methodBuilder.WithBody(@$"
builder.MapGet(""{pattern}"", async (HttpContext context, {classDeclarationSyntax.Identifier} route) =>
builder.Map{type}(""{pattern}"", async (HttpContext context, {classDeclarationSyntax.Identifier} route) =>
{{
var request = await route.PreProcess(context, context.RequestAborted);
var response = await route.HandleRequest(request, context.RequestAborted);
@@ -2,7 +2,7 @@
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<Version>0.8.6</Version>
<Version>0.8.7</Version>
<LangVersion>latest</LangVersion>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Authors>Alexandru Macocian</Authors>