Remove LunaseaRecord

This commit is contained in:
Glax 2025-05-17 17:42:07 +02:00
parent 3283dd7290
commit aacdb72d6a

View File

@ -1,16 +0,0 @@
using System.Text.RegularExpressions;
namespace API.APIEndpointRecords;
public record LunaseaRecord(string id)
{
private static Regex validateRex = new(@"(?:device|user)\/[0-9a-zA-Z\-]+");
public bool Validate()
{
if (id == string.Empty)
return false;
if (!validateRex.IsMatch(id))
return false;
return true;
}
}