From 3061b4dfd2b155d799e17437db4b251abdec4613 Mon Sep 17 00:00:00 2001 From: "nicolas.dorier" Date: Fri, 21 Dec 2018 13:33:26 +0900 Subject: [PATCH] Add comments --- BTCPayServer/Extensions.cs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/BTCPayServer/Extensions.cs b/BTCPayServer/Extensions.cs index e6a3eb648..f008ec059 100644 --- a/BTCPayServer/Extensions.cs +++ b/BTCPayServer/Extensions.cs @@ -168,6 +168,13 @@ namespace BTCPayServer request.Path.ToUriComponent()); } + /// + /// If 'toto' and RootPath is 'rootpath' returns '/rootpath/toto' + /// If 'toto' and RootPath is empty returns '/toto' + /// + /// + /// + /// public static string GetRelativePath(this HttpRequest request, string path) { if (path.Length > 0 && path[0] != '/') @@ -178,7 +185,9 @@ namespace BTCPayServer } /// - /// Returns path if path is absolute, or the relative path to this website root + /// If 'https://example.com/toto' returns 'https://example.com/toto' + /// If 'toto' and RootPath is 'rootpath' returns '/rootpath/toto' + /// If 'toto' and RootPath is empty returns '/toto' /// /// ///