1
0
mirror of https://github.com/bitwarden/server synced 2025-12-11 22:03:38 +00:00

remove claims endpoint

This commit is contained in:
Kyle Spearrin
2017-10-23 09:32:55 -04:00
parent e0a6bb82d1
commit 229b517f2c

View File

@@ -1,6 +1,5 @@
using System;
using Microsoft.AspNetCore.Mvc;
using System.Linq;
using Bit.Core.Models.Api;
namespace Bit.Api.Controllers
@@ -14,12 +13,6 @@ namespace Bit.Api.Controllers
return DateTime.UtcNow;
}
[HttpGet("~/claims")]
public IActionResult Claims()
{
return new JsonResult(User?.Claims?.Select(c => new { c.Type, c.Value }));
}
[HttpGet("~/version")]
public VersionResponseModel Version()
{