mirror of
https://github.com/sebastian-heinz/mhf-server.git
synced 2025-04-04 05:48:29 +08:00
36 lines
892 B
C#
36 lines
892 B
C#
![]() |
using System.Threading.Tasks;
|
|||
|
using Arrowgene.Services.Logging;
|
|||
|
|
|||
|
namespace Mhf.Server.Web.Route
|
|||
|
{
|
|||
|
/// <summary>
|
|||
|
/// Implementation of Kestrel server as backend
|
|||
|
/// </summary>
|
|||
|
public abstract class WebRoute : IWebRoute
|
|||
|
{
|
|||
|
protected ILogger Logger => LogProvider.Instance.GetLogger(this);
|
|||
|
|
|||
|
public abstract string Route { get; }
|
|||
|
|
|||
|
public virtual Task<WebResponse> Get(WebRequest request)
|
|||
|
{
|
|||
|
return WebResponse.NotFound();
|
|||
|
}
|
|||
|
|
|||
|
public virtual Task<WebResponse> Post(WebRequest request)
|
|||
|
{
|
|||
|
return WebResponse.NotFound();
|
|||
|
}
|
|||
|
|
|||
|
public virtual Task<WebResponse> Put(WebRequest request)
|
|||
|
{
|
|||
|
return WebResponse.NotFound();
|
|||
|
}
|
|||
|
|
|||
|
public virtual Task<WebResponse> Delete(WebRequest request)
|
|||
|
{
|
|||
|
return WebResponse.NotFound();
|
|||
|
}
|
|||
|
}
|
|||
|
}
|