mirror of
https://github.com/bitwarden/server.git
synced 2025-06-01 08:40:33 -05:00
23 lines
464 B
C#
23 lines
464 B
C#
using System;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using System.Linq;
|
|
|
|
namespace Bit.Api.Controllers
|
|
{
|
|
[Route("alive")]
|
|
public class AliveController : Controller
|
|
{
|
|
[HttpGet("")]
|
|
public DateTime Get()
|
|
{
|
|
return DateTime.UtcNow;
|
|
}
|
|
|
|
[HttpGet("claims")]
|
|
public IActionResult Claims()
|
|
{
|
|
return new JsonResult(User?.Claims?.Select(c => new { c.Type, c.Value }));
|
|
}
|
|
}
|
|
}
|