Files
Govor/Govor.Contracts/Requests/CreateInvitationWithKeyRequest.cs
Artemy 9aa7e017e2 Add secure admin-key invitation endpoint
Adds a new invitation creation endpoint that requires a configured admin key before generating an invitation code. The controller now reads the expected key from configuration, returns 503 when it is missing, and rejects invalid attempts with 401. This also includes the request contract for the admin-key payload.
2026-10-04 16:38:57 +07:00

10 lines
311 B
C#

namespace Govor.Contracts.Requests;
public class CreateInvitationWithKeyRequest
{
public DateTime EndDate { get; set; }
public int MaxParticipants { get; set; }
public bool IsAdmin { get; set; }
public string? Description { get; set; }
public string AdminKey { get; set; } = string.Empty;
}