summaryrefslogtreecommitdiff
path: root/Project-Unite/Controllers
diff options
context:
space:
mode:
Diffstat (limited to 'Project-Unite/Controllers')
-rw-r--r--Project-Unite/Controllers/APIController.cs8
1 files changed, 8 insertions, 0 deletions
diff --git a/Project-Unite/Controllers/APIController.cs b/Project-Unite/Controllers/APIController.cs
index 5767586..f21a385 100644
--- a/Project-Unite/Controllers/APIController.cs
+++ b/Project-Unite/Controllers/APIController.cs
@@ -4,6 +4,7 @@ using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Script.Serialization;
+using Microsoft.AspNet.Identity;
using Project_Unite.Models;
namespace Project_Unite.Controllers
@@ -47,6 +48,13 @@ namespace Project_Unite.Controllers
}
[Authorize]
+ public ActionResult TestNotification()
+ {
+ NotificationDaemon.NotifyEveryone(User.Identity.GetUserId(), "Test notification", "This is a test of the real-time notification system.", "#");
+ return Content("Sent.");
+ }
+
+ [Authorize]
public ActionResult GetNotificationCount()
{
return Content(ACL.NotificationCountRaw(User.Identity.Name).ToString());