]>
Commit | Line | Data |
---|---|---|
11fdf7f2 TL |
1 | import { HttpClient } from '@angular/common/http'; |
2 | import { Injectable } from '@angular/core'; | |
3 | ||
11fdf7f2 | 4 | @Injectable({ |
f67539c2 | 5 | providedIn: 'root' |
11fdf7f2 TL |
6 | }) |
7 | export class MonitorService { | |
8 | constructor(private http: HttpClient) {} | |
9 | ||
10 | getMonitor() { | |
11 | return this.http.get('api/monitor'); | |
12 | } | |
13 | } |