From 3070a702f66ad34b3ea074e083d0e3a3bc103e31 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Wed, 6 Jan 2016 22:54:38 -0500 Subject: [PATCH] robots file on root --- MediaBrowser.WebDashboard/Api/DashboardService.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/MediaBrowser.WebDashboard/Api/DashboardService.cs b/MediaBrowser.WebDashboard/Api/DashboardService.cs index 0a04f4cee..53dbaf4aa 100644 --- a/MediaBrowser.WebDashboard/Api/DashboardService.cs +++ b/MediaBrowser.WebDashboard/Api/DashboardService.cs @@ -57,6 +57,11 @@ namespace MediaBrowser.WebDashboard.Api public string Mode { get; set; } } + [Route("/robots.txt", "GET")] + public class GetRobotsTxt + { + } + /// /// Class GetDashboardResource /// @@ -188,6 +193,14 @@ namespace MediaBrowser.WebDashboard.Api return ResultFactory.GetOptimizedResult(Request, configPages); } + public object Get(GetRobotsTxt request) + { + return Get(new GetDashboardResource + { + ResourceName = "robots.txt" + }); + } + /// /// Gets the specified request. ///