remove invalid attribute parameter
This commit is contained in:
@@ -3,14 +3,8 @@
|
|||||||
[AttributeUsage(AttributeTargets.Method)]
|
[AttributeUsage(AttributeTargets.Method)]
|
||||||
public class ApiMessageHandlerAttribute(string route, params string[] methods) : Attribute
|
public class ApiMessageHandlerAttribute(string route, params string[] methods) : Attribute
|
||||||
{
|
{
|
||||||
public ApiMessageHandlerAttribute(string route, params HttpMethod[] methods)
|
|
||||||
: this(route, methods.Select(m => m.Method).ToArray())
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
public ApiMessageHandlerAttribute(string route)
|
public ApiMessageHandlerAttribute(string route)
|
||||||
: this(route, HttpMethod.Post)
|
: this(route, HttpMethod.Post.Method)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user