From 3fea994e93356165bcee16630609538991410559 Mon Sep 17 00:00:00 2001 From: Pilzinsel64 Date: Fri, 29 Nov 2024 11:33:17 +0100 Subject: [PATCH] remove invalid attribute parameter --- Pilz.Net/Api/ApiMessageHandlerAttribute.cs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) 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) { }