work on watcher list

This commit is contained in:
2018-09-10 15:45:50 -04:00
parent c931c03071
commit f331c83666
7 changed files with 150 additions and 117 deletions

View File

@@ -0,0 +1,28 @@
import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { Observable } from 'rxjs/Observable';
import 'rxjs/add/operator/map'
@Injectable({
providedIn: 'root'
})
export class WatcherService {
private apiUrl = "api/watching/";
constructor(
private http: HttpClient
) { }
getWatching() {
const url = this.apiUrl
return this.http.get<any>(url)
.map(data => {
return data;
});
}
}