Compare commits

..

2 Commits

Author SHA1 Message Date
2ebf25852b Merge remote-tracking branch 'origin/master'
All checks were successful
continuous-integration/drone/push Build is passing
2022-10-29 04:32:06 +10:00
21da4a4abe Merge remote-tracking branch 'origin/master' 2022-10-29 04:31:58 +10:00

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) {
@ -24,7 +24,7 @@ export class ApiChatService {
Id: 0,
Text: text
}
//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)
}
}