LANCommander.PlaynitePlugin/LANCommander/Data/Models/ServerHttpPath.cs
Pat Hartl 4fb11c1dd7 Change server HTTP options to allow multiple specified paths.
This is useful if you only want to share specific paths via HTTP, or have the paths stored in multiple places and want to unite them under one URL structure.
2023-11-04 19:43:38 -05:00

17 lines
470 B
C#

using System.ComponentModel.DataAnnotations.Schema;
using System.Text.Json.Serialization;
namespace LANCommander.Data.Models
{
public class ServerHttpPath : BaseModel
{
public string LocalPath { get; set; }
public string Path { get; set; }
public Guid ServerId { get; set; }
[JsonIgnore]
[ForeignKey(nameof(ServerId))]
[InverseProperty("HttpPaths")]
public virtual Server Server { get; set; }
}
}