2022-02-07 09:29:30 +01:00
|
|
|
using System;
|
|
|
|
|
|
|
|
namespace ln.http
|
|
|
|
{
|
2023-08-07 10:38:01 +02:00
|
|
|
[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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|