post webfront url to master

This commit is contained in:
RaidMax 2021-10-19 21:33:21 -05:00
parent 8d0c48614f
commit e4153e0c2f
3 changed files with 10 additions and 3 deletions

View File

@ -22,7 +22,7 @@ namespace IW4MAdmin.Application.API.Master
public int Uptime { get; set; }
/// <summary>
/// Specifices the version of the instance
/// Specifies the version of the instance
/// </summary>
[JsonProperty("version")]
[JsonConverter(typeof(BuildNumberJsonConverter))]
@ -33,5 +33,11 @@ namespace IW4MAdmin.Application.API.Master
/// </summary>
[JsonProperty("servers")]
public List<ApiServer> Servers { get; set; }
/// <summary>
/// Url IW4MAdmin is listening on
/// </summary>
[JsonProperty("webfront_url")]
public string WebfrontUrl { get; set; }
}
}

View File

@ -179,7 +179,8 @@ namespace IW4MAdmin.Application.Misc
Id = s.EndPoint,
Port = (short)s.Port,
IPAddress = s.IP
}).ToList()
}).ToList(),
WebfrontUrl = _appConfig.WebfrontUrl
};
Response<ResultMessage> response = null;

View File

@ -202,6 +202,6 @@
});
</script>
@await RenderSectionAsync("scripts", required: false)
@Html.Raw(ViewBag.ScriptInjection);
@Html.Raw(ViewBag.ScriptInjection)
</body>
</html>