mirror of
https://github.com/sebastian-heinz/mhf-server.git
synced 2025-04-04 05:48:29 +08:00
17 lines
425 B
C#
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);
|
|||
|
}
|
|||
|
}
|