1
0
mirror of https://github.com/bitwarden/server.git synced 2025-05-22 20:11:04 -05:00

push apis are only for not self hosted instances

This commit is contained in:
Kyle Spearrin 2017-08-15 16:20:46 -04:00
parent dd288a7071
commit 5576028c7a

View File

@ -7,11 +7,13 @@ using Bit.Core.Models.Api;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Linq; using System.Linq;
using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Hosting;
using Bit.Api.Utilities;
namespace Bit.Api.Controllers namespace Bit.Api.Controllers
{ {
[Route("push")] [Route("push")]
[Authorize("Push")] [Authorize("Push")]
[SelfHosted(NotSelfHostedOnly = true)]
public class PushController : Controller public class PushController : Controller
{ {
private readonly IPushRegistrationService _pushRegistrationService; private readonly IPushRegistrationService _pushRegistrationService;