mhf-server/Mhf.Server/Web/Route/IWebRoute.cs
2019-11-24 19:43:35 +08:00

17 lines
425 B
C#

using System.Threading.Tasks;
namespace Mhf.Server.Web.Route
{
/// <summary>
/// Defines a handler for a route
/// </summary>
public interface IWebRoute
{
string Route { get; }
Task<WebResponse> Get(WebRequest request);
Task<WebResponse> Post(WebRequest request);
Task<WebResponse> Put(WebRequest request);
Task<WebResponse> Delete(WebRequest request);
}
}