Picture Upload beta-5
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
RakVhalate 2022-11-03 20:23:07 +10:00
parent 550bd62ee6
commit b1b76158c8

View File

@ -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)
}
}