Copy files

This commit is contained in:
小海
2020-05-05 21:13:17 +08:00
parent dd38eaac54
commit ce251b1217
19 changed files with 654 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
import {Injectable} from '@angular/core';
import {HttpService} from '../http.service';
@Injectable({
providedIn: 'root'
})
export class LogService {
constructor(private http: HttpService) {
}
logText: string;
getLog() {
// @ts-ignore
const observable = this.http.httpClient.get<string>('https://api.celess.cn/blog.log', {responseType: 'text'});
observable.subscribe(data => {
this.logText = data;
});
return observable;
}
}