diff --git a/Pilz.Net/Api/ApiMessageHandlerAttribute.cs b/Pilz.Net/Api/ApiMessageHandlerAttribute.cs index 1fd357e..16e3725 100644 --- a/Pilz.Net/Api/ApiMessageHandlerAttribute.cs +++ b/Pilz.Net/Api/ApiMessageHandlerAttribute.cs @@ -3,14 +3,8 @@ [AttributeUsage(AttributeTargets.Method)] 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) - : this(route, HttpMethod.Post) + : this(route, HttpMethod.Post.Method) { }