diff --git a/src/app/services/api-chat.service.ts b/src/app/services/api-chat.service.ts index ab98902..f51b005 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) { @@ -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) } }