I have modified the file uploading url

This commit is contained in:
Rajnikant 2022-05-21 12:30:00 +05:30
parent 4f90a6d1fd
commit 0120a1281c
3 changed files with 3 additions and 3 deletions

View File

@ -75,7 +75,6 @@ export class AddIouTemplateComponent implements OnInit {
this.serverService.get(parseInt(server_id, 10)).then((server: Server) => {
this.server = server;
this.getImages();
this.templateMocksService.getIouTemplate().subscribe((iouTemplate: IouTemplate) => {
this.iouTemplate = iouTemplate;
});
@ -136,6 +135,7 @@ export class AddIouTemplateComponent implements OnInit {
}
this.iouService.addTemplate(this.server, this.iouTemplate).subscribe((template: IouTemplate) => {
debugger
this.goBack();
});
} else {

View File

@ -14,7 +14,7 @@ export class IosService {
}
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[]> {

View File

@ -22,7 +22,7 @@ export class IouService {
}
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> {