This commit is contained in:
tidusjar 2016-07-06 13:42:56 +01:00
parent d8111bcedb
commit 5bda83bfdf
4 changed files with 34 additions and 22 deletions

View file

@ -102,7 +102,7 @@ namespace PlexRequests.UI.Modules
RequestLimitRepo = rl;
Get["/", true] = async (x, ct) => await RequestLoad();
Get["SearchIndex","/", true] = async (x, ct) => await RequestLoad();
Get["movie/{searchTerm}", true] = async (x, ct) => await SearchMovie((string)x.searchTerm);
Get["tv/{searchTerm}", true] = async (x, ct) => await SearchTvShow((string)x.searchTerm);
@ -151,6 +151,7 @@ namespace PlexRequests.UI.Modules
private async Task<Negotiator> RequestLoad()
{
var settings = await PrService.GetSettingsAsync();
return View["Search/Index", settings];