1
0
mirror of https://github.com/bitwarden/server.git synced 2025-02-01 23:31:41 +01:00

fix alive endpoint on notifications

This commit is contained in:
Kyle Spearrin 2019-09-08 22:14:15 -04:00
parent cbddbe4cf8
commit e8375335ac

View File

@ -10,7 +10,6 @@ using Microsoft.AspNetCore.SignalR;
namespace Bit.Notifications
{
[Authorize("Internal")]
[SelfHosted(SelfHostedOnly = true)]
public class SendController : Controller
{
private readonly IHubContext<NotificationsHub> _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))