1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 15:20:48 -05:00

Seperated the application back into a seperate project

webfront is just a library now
This commit is contained in:
RaidMax
2018-04-08 13:48:40 -05:00
parent ff756f9288
commit 599027c4b6
20 changed files with 133 additions and 57 deletions

View File

@ -13,7 +13,7 @@ namespace WebfrontCore.Controllers
{
public IActionResult Index()
{
var activeServers = Manager.Servers.Select(s => new ServerInfo()
var activeServers = Manager.GetServers().Select(s => new ServerInfo()
{
Name = s.Hostname,
ID = s.GetHashCode(),
@ -29,7 +29,7 @@ namespace WebfrontCore.Controllers
public async Task<IActionResult> ExecuteAsync(int serverId, string command)
{
var server = Manager.Servers.First(s => s.GetHashCode() == serverId);
var server = Manager.GetServers().First(s => s.GetHashCode() == serverId);
var client = new Player()
{
ClientId = User.ClientId,