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

View File

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