V13-FE-011: finalize search list layout slice
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
using FastEndpoints;
|
||||
using Kbx.Shared.Telemetry;
|
||||
namespace Kbx.Modules.Common.UxTelemetry.Ingest;
|
||||
public sealed class Endpoint(KbxUxTelemetryRepository repository) : Endpoint<KbxUxEventBatchRequest>
|
||||
{
|
||||
public override void Configure(){Post("/api/kbx/ux/events");Permissions("common.telemetry.write");}
|
||||
public override async Task HandleAsync(KbxUxEventBatchRequest req,CancellationToken ct)
|
||||
{
|
||||
// Replace with the deployment's authenticated tenant accessor.
|
||||
var tenantId=Kbx.Shared.Runtime.RuntimeIdentity.TenantId(User);
|
||||
await repository.AppendAsync(tenantId,Kbx.Shared.Runtime.RuntimeIdentity.UserId(User),req.Events,ct);await Send.NoContentAsync(ct);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user