mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2025-04-19 03:27:29 +02:00
3.0.275
This commit is contained in:
parent
f38b516d25
commit
578fcee611
70 changed files with 6828 additions and 9625 deletions
|
@ -22,24 +22,5 @@ namespace TINK.Services.CopriApi.ServerUris
|
|||
? "tinkapp" /* resource tree is more complex for TINK/ konrad*/
|
||||
: "app";
|
||||
|
||||
/// <summary> Get folder name for a static site depending on host name. </summary>
|
||||
/// <param name="hostName">Host name.</param>
|
||||
/// <returns>Folder name.</returns>
|
||||
public static string GetSiteFolderName(this string hostName)
|
||||
=> hostName.GetIsCopri()
|
||||
? "tinkapp" /* resource tree is more complex for TINK/ konrad*/
|
||||
: SHAREE_SILTEFOLDERNAME;
|
||||
|
||||
/// <summary> Get the agb resource name name depending on host name. </summary>
|
||||
/// <param name="hostName">Host name.</param>
|
||||
/// <returns>AGB resource.</returns>
|
||||
public static string GetAGBResource(this string hostName)
|
||||
=> $"{hostName.GetSiteFolderName()}/{(hostName.GetIsCopri()? "konrad-TINK-AGB" : "agb.html")}";
|
||||
|
||||
/// <summary> Get the privacy resource name name depending on host name. </summary>
|
||||
/// <param name="hostName">Host name.</param>
|
||||
/// <returns>Privacy resource.</returns>
|
||||
public static string GetPrivacyResource(this string hostName)
|
||||
=> $"{hostName.GetSiteFolderName()}/{(hostName.GetIsCopri() ? "Datenschutz" : "privacy.html")}";
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue