mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
Basic Authentication Added
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using Nancy;
|
||||
using Nancy.Security;
|
||||
|
||||
namespace NzbDrone.Api
|
||||
{
|
||||
@@ -7,6 +8,7 @@ namespace NzbDrone.Api
|
||||
protected NzbDroneApiModule(string resource)
|
||||
: base("/api/" + resource.Trim('/'))
|
||||
{
|
||||
this.RequiresAuthentication();
|
||||
Options["/"] = x => new Response();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user