drinkrate/DrinkRateAPI/Controllers/UserProfileController.cs
2025-08-10 16:35:36 +02:00

18 lines
No EOL
524 B
C#

using System.Security.Claims;
using DrinkRateAPI.ApiModels.UserProfile;
using Microsoft.AspNetCore.Mvc;
namespace DrinkRateAPI.Controllers;
[ApiController]
[Route("user_profile")]
public class UserProfileController : ControllerBase
{
[HttpPut(Name = "user_profile")]
public UserProfileGet PutUserProfile(UserProfilePut userProfile)
{
throw new ApplicationException();
var x = User.FindFirst(ClaimTypes.NameIdentifier)?.Value; //HttpContext.User.Identities.First();
return new();
}
}