New: Use ASP.NET Core instead of Nancy

This commit is contained in:
ta264 2021-08-04 21:42:40 +01:00 committed by Qstick
parent fe956f340c
commit c247d07e84
161 changed files with 2893 additions and 3665 deletions

View file

@ -1,24 +0,0 @@
using NzbDrone.Core.Notifications;
namespace Lidarr.Api.V1.Notifications
{
public class NotificationModule : ProviderModuleBase<NotificationResource, INotification, NotificationDefinition>
{
public static readonly NotificationResourceMapper ResourceMapper = new NotificationResourceMapper();
public NotificationModule(NotificationFactory notificationFactory)
: base(notificationFactory, "notification", ResourceMapper)
{
}
protected override void Validate(NotificationDefinition definition, bool includeWarnings)
{
if (!definition.Enable)
{
return;
}
base.Validate(definition, includeWarnings);
}
}
}