|
|
@ -13,6 +13,8 @@ using Ninject.Web.Mvc;
|
|
|
|
using NLog;
|
|
|
|
using NLog;
|
|
|
|
using NzbDrone.Common;
|
|
|
|
using NzbDrone.Common;
|
|
|
|
using NzbDrone.Core;
|
|
|
|
using NzbDrone.Core;
|
|
|
|
|
|
|
|
using NzbDrone.Core.Repository.Quality;
|
|
|
|
|
|
|
|
using NzbDrone.Web.Helpers.Binders;
|
|
|
|
|
|
|
|
|
|
|
|
namespace NzbDrone.Web
|
|
|
|
namespace NzbDrone.Web
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -48,6 +50,8 @@ namespace NzbDrone.Web
|
|
|
|
ViewEngines.Engines.Clear();
|
|
|
|
ViewEngines.Engines.Clear();
|
|
|
|
ViewEngines.Engines.Add(razor);
|
|
|
|
ViewEngines.Engines.Add(razor);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ModelBinders.Binders.Add(typeof(QualityTypes), new QualityTypesBinder());
|
|
|
|
|
|
|
|
|
|
|
|
RegisterGlobalFilters(GlobalFilters.Filters);
|
|
|
|
RegisterGlobalFilters(GlobalFilters.Filters);
|
|
|
|
|
|
|
|
|
|
|
|
Logger.Info("Fully initialized and ready.");
|
|
|
|
Logger.Info("Fully initialized and ready.");
|
|
|
@ -63,7 +67,6 @@ namespace NzbDrone.Web
|
|
|
|
return dispatch.Kernel;
|
|
|
|
return dispatch.Kernel;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static void RegisterGlobalFilters(GlobalFilterCollection filters)
|
|
|
|
public static void RegisterGlobalFilters(GlobalFilterCollection filters)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
filters.Add(new HandleErrorAttribute());
|
|
|
|
filters.Add(new HandleErrorAttribute());
|
|
|
|