Files
VDR/VirtualDDNSRouter.Server/Models/Rule.cs

26 lines
537 B
C#

using System.Net;
namespace VirtualDDNSRouter.Server.Models;
public record Rule
{
public string name { get; set; } = string.Empty;
public string apiKey { get; set; } = string.Empty;
public string path { get; set; } = string.Empty;
public Rule()
{
} // Needed for AOT static deserializer - AI
}
public record Route
{
public string path { get; set; } = string.Empty;
public IPAddress ipAddress { get; set; } = IPAddress.None;
public ushort port { get; set; } = 80;
public Route()
{
}
}