mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-05-07 19:18:40 +00:00
I have modified the file uploading url
This commit is contained in:
parent
4f90a6d1fd
commit
0120a1281c
@ -75,7 +75,6 @@ export class AddIouTemplateComponent implements OnInit {
|
|||||||
this.serverService.get(parseInt(server_id, 10)).then((server: Server) => {
|
this.serverService.get(parseInt(server_id, 10)).then((server: Server) => {
|
||||||
this.server = server;
|
this.server = server;
|
||||||
this.getImages();
|
this.getImages();
|
||||||
|
|
||||||
this.templateMocksService.getIouTemplate().subscribe((iouTemplate: IouTemplate) => {
|
this.templateMocksService.getIouTemplate().subscribe((iouTemplate: IouTemplate) => {
|
||||||
this.iouTemplate = iouTemplate;
|
this.iouTemplate = iouTemplate;
|
||||||
});
|
});
|
||||||
@ -136,6 +135,7 @@ export class AddIouTemplateComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.iouService.addTemplate(this.server, this.iouTemplate).subscribe((template: IouTemplate) => {
|
this.iouService.addTemplate(this.server, this.iouTemplate).subscribe((template: IouTemplate) => {
|
||||||
|
debugger
|
||||||
this.goBack();
|
this.goBack();
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
@ -14,7 +14,7 @@ export class IosService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getImagePath(server: Server, filename: string): string {
|
getImagePath(server: Server, filename: string): string {
|
||||||
return `${server.protocol}//${server.host}:${server.port}/images/upload/${filename}`;
|
return `${server.protocol}//${server.host}:${server.port}/v3/images/upload/${filename}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
getTemplates(server: Server): Observable<IosTemplate[]> {
|
getTemplates(server: Server): Observable<IosTemplate[]> {
|
||||||
|
@ -22,7 +22,7 @@ export class IouService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getImagePath(server: Server, filename: string): string {
|
getImagePath(server: Server, filename: string): string {
|
||||||
return `${server.protocol}//${server.host}:${server.port}/images/upload/${filename}`;
|
return `${server.protocol}//${server.host}:${server.port}/v3/images/upload/${filename}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
addTemplate(server: Server, iouTemplate: any): Observable<any> {
|
addTemplate(server: Server, iouTemplate: any): Observable<any> {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user