1
0

final update

This commit is contained in:
Labality
2021-08-19 16:35:32 +07:00
parent c2e012237f
commit f4fa1d8085
11877 changed files with 1192560 additions and 0 deletions

View File

@ -0,0 +1,28 @@
namespace LOC.Website.Web.Controllers
{
using System.Web.Mvc;
using Common;
using Newtonsoft.Json;
public class ServersController : Controller
{
[HttpPost]
public void RegisterServer(string address)
{
ServerStatusManager.Instance.RegisterServer(address);
}
[HttpPost]
public void RemoveServer(string address)
{
ServerStatusManager.Instance.RemoveServer(address);
}
[HttpPost]
public ActionResult GetServers()
{
var json = JsonConvert.SerializeObject(ServerStatusManager.Instance.GetServers());
return Content(json, "application/json");
}
}
}