mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-01-03 03:26:42 +00:00
endpoints updated to v3
This commit is contained in:
parent
a9aa64c7f5
commit
4eefe89eb1
@ -221,7 +221,7 @@ export class NewTemplateDialogComponent implements OnInit {
|
||||
}
|
||||
|
||||
getAppliance(url: string) {
|
||||
let str = url.split('/v2');
|
||||
let str = url.split('/v3');
|
||||
let appliancePath = str[str.length - 1];
|
||||
this.applianceService.getAppliance(this.server, appliancePath).subscribe((appliance: Appliance) => {
|
||||
this.applianceToInstall = appliance;
|
||||
|
@ -178,9 +178,9 @@ export class HttpServer {
|
||||
if (!server.protocol) {
|
||||
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 {
|
||||
url = `/v2${url}`;
|
||||
url = `/v3${url}`;
|
||||
}
|
||||
|
||||
if (!options.headers) {
|
||||
|
Loading…
Reference in New Issue
Block a user