mirror of
https://github.com/bitwarden/server.git
synced 2026-02-02 07:03:11 +08:00
27 lines
630 B
C#
27 lines
630 B
C#
|
|
using System;
|
|||
|
|
using Microsoft.AspNetCore.Mvc;
|
|||
|
|
using Bit.Core.Services;
|
|||
|
|
using Microsoft.AspNetCore.Authorization;
|
|||
|
|
|
|||
|
|
namespace Bit.Api.Controllers
|
|||
|
|
{
|
|||
|
|
[Route("push")]
|
|||
|
|
[Authorize("Push")]
|
|||
|
|
public class PushController : Controller
|
|||
|
|
{
|
|||
|
|
private readonly IPushRegistrationService _pushRegistrationService;
|
|||
|
|
|
|||
|
|
public PushController(
|
|||
|
|
IPushRegistrationService pushRegistrationService)
|
|||
|
|
{
|
|||
|
|
_pushRegistrationService = pushRegistrationService;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[HttpGet("register")]
|
|||
|
|
public Object Register()
|
|||
|
|
{
|
|||
|
|
return new { Foo = "bar" };
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|