Added latest version code and view. Need to finish the view #11

This commit is contained in:
tidusjar 2016-03-15 17:05:48 +00:00
parent 67ecbbf178
commit 33130589ae
20 changed files with 297 additions and 16 deletions

View file

@ -100,6 +100,7 @@ namespace PlexRequests.UI.Modules
Get["/emailnotification"] = _ => EmailNotifications();
Post["/emailnotification"] = _ => SaveEmailNotifications();
Get["/status"] = _ => Status();
}
private Negotiator Authentication()
@ -272,5 +273,12 @@ namespace PlexRequests.UI.Modules
Log.Info("Saved email settings, result: {0}", result);
return Context.GetRedirect("~/admin/emailnotification");
}
private Negotiator Status()
{
var checker = new StatusChecker();
var status = checker.GetStatus();
return View["Status", status];
}
}
}