mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 13:33:34 -07:00
Basic Authentication Added
This commit is contained in:
parent
339e220cac
commit
f1d2e0e6df
13 changed files with 103 additions and 11 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue