mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-06-16 22:08:08 +00:00
endpoints updated to v3
This commit is contained in:
@ -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;
|
||||||
|
@ -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) {
|
||||||
|
Reference in New Issue
Block a user