ln.http/ln.http/MapAttribute.cs

18 lines
438 B
C#
Raw Permalink Normal View History

2022-02-07 09:29:30 +01:00
using System;
namespace ln.http
{
[AttributeUsage(AttributeTargets.Method | AttributeTargets.Class, AllowMultiple = true)]
2022-02-07 09:29:30 +01:00
public class MapAttribute : Attribute
{
public string Path { get; set; }
public HttpMethod Method { get; set; }
public MapAttribute(){}
public MapAttribute(HttpMethod method, string path)
{
Method = method;
Path = path;
}
}
}