24 lines
549 B
C#
24 lines
549 B
C#
using System.Net;
|
|
using YamlDotNet.Serialization;
|
|
|
|
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
|
|
}
|
|
|
|
|
|
public record Route
|
|
{
|
|
public string path { get; set; } = string.Empty;
|
|
public IPAddress ipAddress { get; set; } = IPAddress.None;
|
|
|
|
public UInt16 port { get; set; } = 80;
|
|
|
|
public Route() { }
|
|
} |