Ajout de PublicCreatorInfo

This commit is contained in:
PascalMarchesseault
2024-06-08 12:03:20 -04:00
parent 8a1169cb05
commit 1c277f530d
4 changed files with 107 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
using Hutopy.Application.Users.Queries;
using Hutopy.Application.Users.Queries.GetCreatorInfo;
namespace Hutopy.Web.Endpoints;
public class GetCreatorInfo : EndpointGroupBase
{
public override void Map(WebApplication app)
{
app.MapGroup(this)
.MapGet(GetSelectedCreatorInfo);
}
private static async Task<CreatorInfoDto> GetSelectedCreatorInfo(ISender sender, [AsParameters] GetCreatorInfoQuery query)
{
return await sender.Send(query);
}
}