Basic Authentication Added

This commit is contained in:
Mark McDowall 2013-05-21 17:58:57 -07:00
parent 339e220cac
commit f1d2e0e6df
13 changed files with 103 additions and 11 deletions

View file

@ -1,5 +1,6 @@
using System;
using Nancy;
using Nancy.Security;
namespace NzbDrone.Api.Frontend
{
@ -7,6 +8,7 @@ namespace NzbDrone.Api.Frontend
{
public IndexModule()
{
this.RequiresAuthentication();
//Serve anything that doesn't have an extension
Get[@"/(.*)"] = x => Index();
}