mirror of
https://github.com/bitwarden/server.git
synced 2025-04-16 02:28:13 -05: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
|
namespace Bit.Notifications
|
||||||
{
|
{
|
||||||
[Authorize("Internal")]
|
[Authorize("Internal")]
|
||||||
[SelfHosted(SelfHostedOnly = true)]
|
|
||||||
public class SendController : Controller
|
public class SendController : Controller
|
||||||
{
|
{
|
||||||
private readonly IHubContext<NotificationsHub> _hubContext;
|
private readonly IHubContext<NotificationsHub> _hubContext;
|
||||||
@ -23,13 +22,13 @@ namespace Bit.Notifications
|
|||||||
[HttpGet("~/alive")]
|
[HttpGet("~/alive")]
|
||||||
[HttpGet("~/now")]
|
[HttpGet("~/now")]
|
||||||
[AllowAnonymous]
|
[AllowAnonymous]
|
||||||
[SelfHosted(SelfHostedOnly = false, NotSelfHostedOnly = false)]
|
|
||||||
public DateTime GetAlive()
|
public DateTime GetAlive()
|
||||||
{
|
{
|
||||||
return DateTime.UtcNow;
|
return DateTime.UtcNow;
|
||||||
}
|
}
|
||||||
|
|
||||||
[HttpPost("~/send")]
|
[HttpPost("~/send")]
|
||||||
|
[SelfHosted(SelfHostedOnly = true)]
|
||||||
public async Task PostSend()
|
public async Task PostSend()
|
||||||
{
|
{
|
||||||
using(var reader = new StreamReader(Request.Body, Encoding.UTF8))
|
using(var reader = new StreamReader(Request.Body, Encoding.UTF8))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user