19 lines
429 B
Plaintext
19 lines
429 B
Plaintext
|
@page
|
||
|
@using Monithor.api
|
||
|
@model StatusModel
|
||
|
@{
|
||
|
Layout = "_Status";
|
||
|
if (HttpContext.Request.Host.Host == Config.AdminHost) {
|
||
|
Response.Redirect($"https://{Config.AdminHost}/Admin");
|
||
|
Layout = null;
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ViewData["statuspage"] = Config.StatusPages.FirstOrDefault(p => p.Route == HttpContext.Request.Host.Host);
|
||
|
|
||
|
if (ViewData["statuspage"] == null) {
|
||
|
Response.Redirect("/Error");
|
||
|
Layout = null;
|
||
|
return;
|
||
|
}
|
||
|
}
|