This commit is contained in:
@@ -38,8 +38,9 @@ namespace AyaNova.Api.Controllers
|
||||
[HttpGet]
|
||||
public ContentResult Index()
|
||||
{
|
||||
//https://superuser.com/questions/361297/what-colour-is-the-dark-green-on-old-fashioned-green-screen-computer-displays
|
||||
var errorBlock = string.Empty;
|
||||
if (serverState.IsSystemLocked)
|
||||
if (serverState.IsSystemLocked)
|
||||
errorBlock = $@"<div class=""error""><h1>SERVER ERROR</h1><h2>{serverState.Reason}</h2></div>";
|
||||
var resp = $@"<!DOCTYPE html>
|
||||
<html lang=""en"">
|
||||
@@ -78,7 +79,7 @@ namespace AyaNova.Api.Controllers
|
||||
</body>
|
||||
</html>";
|
||||
System.Text.RegularExpressions.Regex reg = new System.Text.RegularExpressions.Regex(@"(?<=\s)\s+");
|
||||
resp = reg.Replace(resp, string.Empty).Replace("\n","").Replace("\t","");
|
||||
resp = reg.Replace(resp, string.Empty).Replace("\n", "").Replace("\t", "");
|
||||
return new ContentResult
|
||||
{
|
||||
ContentType = "text/html",
|
||||
|
||||
Reference in New Issue
Block a user