diff --git a/src/Tgstation.Server.Api/Route.cs b/src/Tgstation.Server.Api/Route.cs index 9a29119de5..99789e5443 100644 --- a/src/Tgstation.Server.Api/Route.cs +++ b/src/Tgstation.Server.Api/Route.cs @@ -1,4 +1,5 @@ -using System.Net.Http; +using System; +using System.Net.Http; namespace Tgstation.Server.Api { @@ -16,5 +17,12 @@ namespace Tgstation.Server.Api /// The method of the action /// public HttpMethod Method { get; set; } + + /// + /// Adds a portion to + /// + /// The host address + /// A combined and + public Uri Flatten(Uri host) => new Uri(String.Concat(host.ToString().TrimEnd('/'), Path)); } }