26 lines
507 B
C#
26 lines
507 B
C#
namespace StellaOps.Router.Gateway.Configuration;
|
|
|
|
public enum StellaOpsRouteType
|
|
{
|
|
Microservice,
|
|
ReverseProxy,
|
|
StaticFiles,
|
|
StaticFile,
|
|
WebSocket,
|
|
NotFoundPage,
|
|
ServerErrorPage
|
|
}
|
|
|
|
public sealed class StellaOpsRoute
|
|
{
|
|
public StellaOpsRouteType Type { get; set; }
|
|
|
|
public string Path { get; set; } = string.Empty;
|
|
|
|
public bool IsRegex { get; set; }
|
|
|
|
public string? TranslatesTo { get; set; }
|
|
|
|
public Dictionary<string, string> Headers { get; set; } = new();
|
|
}
|