From b1b76158c86f0ed47732416c0d3b83952e676953 Mon Sep 17 00:00:00 2001 From: RakVhalate Date: Thu, 3 Nov 2022 20:23:07 +1000 Subject: [PATCH] Picture Upload beta-5 --- src/app/services/api-chat.service.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/app/services/api-chat.service.ts b/src/app/services/api-chat.service.ts index 7fb58f4..e036ad2 100644 --- a/src/app/services/api-chat.service.ts +++ b/src/app/services/api-chat.service.ts @@ -12,8 +12,8 @@ export class ApiChatService { getPosts(): Observable { console.log("Получаю посты и картинки"); - //return this.http.get('http://api.vdk2ch.ru:5000/List/'); - return this.http.get('http://localhost:7141/List/'); + return this.http.get('http://api.vdk2ch.ru:5000/List/'); + //return this.http.get('http://localhost:7141/List/'); } sendPostToApi(text: string, imgUrl: string) { @@ -26,15 +26,15 @@ export class ApiChatService { ImgURL: imgUrl } console.log(postToSend) - //return this.http.post('http://api.vdk2ch.ru:5000/PostTo', postToSend) - return this.http.post('http://localhost:7141/PostTo', postToSend) + return this.http.post('http://api.vdk2ch.ru:5000/PostTo', postToSend) + //return this.http.post('http://localhost:7141/PostTo', postToSend) } sendpic(picToSend: File):Observable { const PostPicture = new FormData(); PostPicture.append('PostPicture', picToSend); - return this.http.post('http://localhost:7141/UploadPic', PostPicture) - //return this.http.post('http://api.vdk2ch.ru:5000/UploadPic', PostPicture) + //return this.http.post('http://localhost:7141/UploadPic', PostPicture) + return this.http.post('http://api.vdk2ch.ru:5000/UploadPic', PostPicture) } }