diff --git a/src/ReC.API/Controllers/ProfileController.cs b/src/ReC.API/Controllers/ProfileController.cs new file mode 100644 index 0000000..125dfb9 --- /dev/null +++ b/src/ReC.API/Controllers/ProfileController.cs @@ -0,0 +1,16 @@ +using MediatR; +using Microsoft.AspNetCore.Mvc; +using ReC.Application.Profile.Queries; + +namespace ReC.API.Controllers; + +[Route("api/[controller]")] +[ApiController] +public class ProfileController(IMediator mediator) : ControllerBase +{ + [HttpGet] + public async Task GetProfile([FromQuery] ReadProfileViewQuery query, CancellationToken cancel) + { + return Ok(await mediator.Send(query, cancel)); + } +} \ No newline at end of file