endpoints updated to v3

This commit is contained in:
piotrpekala7
2021-04-28 12:32:11 +02:00
parent a9aa64c7f5
commit 4eefe89eb1
2 changed files with 3 additions and 3 deletions

View File

@ -221,7 +221,7 @@ export class NewTemplateDialogComponent implements OnInit {
} }
getAppliance(url: string) { getAppliance(url: string) {
let str = url.split('/v2'); let str = url.split('/v3');
let appliancePath = str[str.length - 1]; let appliancePath = str[str.length - 1];
this.applianceService.getAppliance(this.server, appliancePath).subscribe((appliance: Appliance) => { this.applianceService.getAppliance(this.server, appliancePath).subscribe((appliance: Appliance) => {
this.applianceToInstall = appliance; this.applianceToInstall = appliance;

View File

@ -178,9 +178,9 @@ export class HttpServer {
if (!server.protocol) { if (!server.protocol) {
server.protocol = location.protocol as ServerProtocol; server.protocol = location.protocol as ServerProtocol;
} }
url = `${server.protocol}//${server.host}:${server.port}/v2${url}`; url = `${server.protocol}//${server.host}:${server.port}/v3${url}`;
} else { } else {
url = `/v2${url}`; url = `/v3${url}`;
} }
if (!options.headers) { if (!options.headers) {