ln.http/ln.http/MapAttribute.cs

18 lines
438 B
C#

using System;
namespace ln.http
{
[AttributeUsage(AttributeTargets.Method | AttributeTargets.Class, AllowMultiple = true)]
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;
}
}
}