Compare commits

..

No commits in common. "ced76ed70c4cef2742cdbf44a46b94b227f551ff" and "5d6360743fc622939bc87a77c16135caefb8749e" have entirely different histories.

2 changed files with 6 additions and 8 deletions

View File

@ -1,7 +1,5 @@
<div class="post">
<p> # {{post.Id}} {{post.Timestamp}}</p>
<a href="{{post.ImgURL}}" target="_blank">
<img *ngIf="post.ImgURL != '0'" src="{{post.ImgURL}}" alt="anonpls" width="140">
</a>
<p>{{post.Text}}</p>
<img *ngIf="post.ImgURL != '0'" src="{{post.ImgURL}}" alt="anonpls" width="140"> # {{post.Id}}
<h3>{{post.Timestamp}}</h3>
<h2>{{post.Text}}</h2>
</div>

View File

@ -11,13 +11,13 @@ export class ApiChatService {
}
getPosts(): Observable<SinglePost[]> {
//console.log("Получаю посты и картинки");
console.log("Получаю посты и картинки");
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) {
//console.log("Отправляю пост...");
console.log("Отправляю пост...");
var postToSend =
{
Timestamp: text,
@ -25,7 +25,7 @@ export class ApiChatService {
Text: text,
ImgURL: imgUrl
}
//console.log(postToSend)
console.log(postToSend)
return this.http.post('http://api.vdk2ch.ru:5000/PostTo', postToSend)
//return this.http.post('http://localhost:7141/PostTo', postToSend)