mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
Added Notification System, Renamed Repository to Entities
This commit is contained in:
28
NzbDrone.Web/Controllers/NotificationController.cs
Normal file
28
NzbDrone.Web/Controllers/NotificationController.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.Mvc;
|
||||
using NzbDrone.Core.Providers;
|
||||
|
||||
namespace NzbDrone.Web.Controllers
|
||||
{
|
||||
public class NotificationController : Controller
|
||||
{
|
||||
private readonly INotificationProvider _notifications;
|
||||
//
|
||||
// GET: /Notification/
|
||||
|
||||
public NotificationController(INotificationProvider notificationProvider)
|
||||
{
|
||||
_notifications = notificationProvider;
|
||||
}
|
||||
|
||||
[HttpGet]
|
||||
public JsonResult Index()
|
||||
{
|
||||
return Json(_notifications.ProgressNotifications, JsonRequestBehavior.AllowGet);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user