From e8375335acbecb977a66b3098a40609b92450124 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Sun, 8 Sep 2019 22:14:15 -0400 Subject: [PATCH] fix alive endpoint on notifications --- src/Notifications/Controllers/SendController.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Notifications/Controllers/SendController.cs b/src/Notifications/Controllers/SendController.cs index d9a32d3feb..c49ef5fce6 100644 --- a/src/Notifications/Controllers/SendController.cs +++ b/src/Notifications/Controllers/SendController.cs @@ -10,7 +10,6 @@ using Microsoft.AspNetCore.SignalR; namespace Bit.Notifications { [Authorize("Internal")] - [SelfHosted(SelfHostedOnly = true)] public class SendController : Controller { private readonly IHubContext _hubContext; @@ -23,13 +22,13 @@ namespace Bit.Notifications [HttpGet("~/alive")] [HttpGet("~/now")] [AllowAnonymous] - [SelfHosted(SelfHostedOnly = false, NotSelfHostedOnly = false)] public DateTime GetAlive() { return DateTime.UtcNow; } [HttpPost("~/send")] + [SelfHosted(SelfHostedOnly = true)] public async Task PostSend() { using(var reader = new StreamReader(Request.Body, Encoding.UTF8))