Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Prowlarr/blame/commit/5dc3a3223dce293595805259d9fc8d4d5aa38c7b/NzbDrone.Api/Directories/DirectoryModule.cs You should set ROOT_URL correctly, otherwise the web may not work correctly.
Prowlarr/NzbDrone.Api/Directories/DirectoryModule.cs

34 lines
957 B

using System.Collections.Generic;
using System.Linq;
using Nancy;
12 years ago
using NzbDrone.Api.Extensions;
using NzbDrone.Common;
namespace NzbDrone.Api.Directories
{
public class DirectoryModule : NzbDroneApiModule
{
private readonly IDirectoryLookupService _directoryLookupService;
public DirectoryModule(IDirectoryLookupService directoryLookupService)
: base("/directories")
{
_directoryLookupService = directoryLookupService;
Get["/"] = x => GetDirectories();
}
private Response GetDirectories()
{
if (!Request.Query.query.HasValue)
return new List<string>().AsResponse();
string query = Request.Query.query.Value;
var dirs = _directoryLookupService.LookupSubDirectories(query)
.Select(p => p.GetActualCasing())
.ToList();
return dirs.AsResponse();
}
}
}