15 lines
408 B
C#
15 lines
408 B
C#
namespace Pilz.Net.Api;
|
|
|
|
[AttributeUsage(AttributeTargets.Method)]
|
|
public class ApiMessageHandlerAttribute(string route, params string[] methods) : Attribute
|
|
{
|
|
public ApiMessageHandlerAttribute(string route)
|
|
: this(route, HttpMethod.Post.Method)
|
|
{
|
|
}
|
|
|
|
public string Route { get; } = route;
|
|
public string[] Methods { get; } = methods;
|
|
public Type? Serializer { get; set; }
|
|
}
|