fix: trailing slash integration url issues (#1571)
This commit is contained in:
1 parent
d5f76218cd
commit
b277f444b2
19 files changed
+126
-129
No files matched your search
@@ -117,7 +117,7 @@ export class OpenMediaVaultIntegration extends Integration {
|
||||
params: Record<string, unknown>,
|
||||
headers: Record<string, string> = {},
|
||||
): Promise<Response> {
|
||||
return await fetch(`${this.integration.url}/rpc.php`, {
|
||||
return await fetch(this.url("/rpc.php"), {
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
|
||||
Reference in new issue
Block a user