add function to trim and concat homeserver url and path

This commit is contained in:
2022-03-27 15:29:44 +01:00
parent e7355a5474
commit 366bde4897
3 changed files with 15 additions and 4 deletions

11
private/New-MatrixUrl.ps1 Normal file
View File

@ -0,0 +1,11 @@
function New-MatrixUrl {
param(
[Parameter(Mandatory)]
[string]$ServerUrl,
[Parameter(Mandatory)]
[string]$ApiPath
)
return $ServerUrl.Trim("/") + $ApiPath
}