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:
parent
cbddbe4cf8
commit
e8375335ac
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user