18 lines
413 B
C#
18 lines
413 B
C#
using System;
|
|
|
|
namespace ln.http
|
|
{
|
|
[AttributeUsage(AttributeTargets.Method, 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;
|
|
}
|
|
}
|
|
} |