mirror of
https://github.com/sebastian-heinz/mhf-server.git
synced 2025-04-04 14:08:27 +08:00
20 lines
494 B
C#
20 lines
494 B
C#
using System.Threading.Tasks;
|
|
using Mhf.Server.Web;
|
|
using Mhf.Server.Web.Route;
|
|
|
|
namespace Mhf.Server.WebRoutes
|
|
{
|
|
public class IndexRoute : WebRoute
|
|
{
|
|
public override string Route => "/";
|
|
|
|
public override async Task<WebResponse> Get(WebRequest request)
|
|
{
|
|
WebResponse response = new WebResponse();
|
|
response.StatusCode = 200;
|
|
await response.WriteAsync("Welcome - Index Page!");
|
|
return response;
|
|
}
|
|
}
|
|
}
|