mirror of
https://github.com/Thumbscrew/PSMatrix.git
synced 2025-07-01 10:35:25 +00:00
add function to trim and concat homeserver url and path
This commit is contained in:
11
private/New-MatrixUrl.ps1
Normal file
11
private/New-MatrixUrl.ps1
Normal file
@ -0,0 +1,11 @@
|
||||
function New-MatrixUrl {
|
||||
param(
|
||||
[Parameter(Mandatory)]
|
||||
[string]$ServerUrl,
|
||||
|
||||
[Parameter(Mandatory)]
|
||||
[string]$ApiPath
|
||||
)
|
||||
|
||||
return $ServerUrl.Trim("/") + $ApiPath
|
||||
}
|
Reference in New Issue
Block a user