This commit is contained in:
parent
550bd62ee6
commit
b1b76158c8
@ -12,8 +12,8 @@ export class ApiChatService {
|
||||
|
||||
getPosts(): Observable<SinglePost[]> {
|
||||
console.log("Получаю посты и картинки");
|
||||
//return this.http.get<SinglePost[]>('http://api.vdk2ch.ru:5000/List/');
|
||||
return this.http.get<SinglePost[]>('http://localhost:7141/List/');
|
||||
return this.http.get<SinglePost[]>('http://api.vdk2ch.ru:5000/List/');
|
||||
//return this.http.get<SinglePost[]>('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<any> {
|
||||
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)
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user