18 lines
No EOL
524 B
C#
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();
|
|
}
|
|
} |