mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-07-21 13:10:45 +02:00
robots file on root
This commit is contained in:
parent
b5cc5abacf
commit
1d53002ff3
|
@ -57,6 +57,11 @@ namespace MediaBrowser.WebDashboard.Api
|
||||||
public string Mode { get; set; }
|
public string Mode { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[Route("/robots.txt", "GET")]
|
||||||
|
public class GetRobotsTxt
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Class GetDashboardResource
|
/// Class GetDashboardResource
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -188,6 +193,14 @@ namespace MediaBrowser.WebDashboard.Api
|
||||||
return ResultFactory.GetOptimizedResult(Request, configPages);
|
return ResultFactory.GetOptimizedResult(Request, configPages);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public object Get(GetRobotsTxt request)
|
||||||
|
{
|
||||||
|
return Get(new GetDashboardResource
|
||||||
|
{
|
||||||
|
ResourceName = "robots.txt"
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the specified request.
|
/// Gets the specified request.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
Loading…
Reference in a new issue