Allow RouteFilter on methods

This commit is contained in:
2024-09-25 19:19:21 +02:00
parent 0ad74f1a77
commit 92fad396aa
2 changed files with 2 additions and 2 deletions
@@ -2,7 +2,7 @@
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<Version>0.8.8</Version>
<Version>0.8.9</Version>
<LangVersion>latest</LangVersion>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Authors>Alexandru Macocian</Authors>
@@ -304,7 +304,7 @@ public class UseRoutesGenerator : IIncrementalGenerator
.WithConstructor(SyntaxBuilder.CreateConstructor(Constants.RouteFilterAttributeName)
.WithModifier(Constants.Public))
.WithAttribute(SyntaxBuilder.CreateAttribute("AttributeUsage")
.WithArgument(AttributeTargets.Class)
.WithArgument(AttributeTargets.Class | AttributeTargets.Method)
.WithArgument("Inherited", false)
.WithArgument("AllowMultiple", true))
.WithBaseClass(nameof(Attribute))