import { Injectable } from '@angular/core'; import {HttpClient} from "@angular/common/http"; import {forkJoin, Observable} from "rxjs"; import {Query1Interface} from "./Query1Interface"; import {Query2Interface} from "./Query2Interface"; import {Query3Interface} from "./Query3Interface"; import {Query4Interface} from "./Query4Interface"; import {Query5Interface} from "./Query5Interface"; @Injectable({ providedIn: 'root' }) export class AdminPanelService { url = "http://localhost:8080/api/admin/admin-panel" constructor(private http: HttpClient) { } getFirstQuery():Observable { return this.http.get(this.url+'/1') } getSecondQuery():Observable{ return this.http.get(this.url+'/2') } getThirdQuery():Observable{ return this.http.get(this.url+'/3') } getFourthQuery():Observable{ return this.http.get(this.url+'/4') } getFifthQuery():Observable{ return this.http.get(this.url+'/5') } }