mirror of
https://github.com/AlexMacocian/Net.Sdk.Web.Extensions.git
synced 2026-07-15 13:39:29 +00:00
Fix map route type
This commit is contained in:
@@ -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);
|
||||
|
||||
+1
-1
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user