import { Observable } from 'rxjs'; import { Injectable } from '@angular/core'; import { HttpClient } from '@angular/common/http'; import { Modul } from '../model/modul'; @Injectable({ providedIn: 'root' }) export class KarmedService { constructor(private http: HttpClient) { } private getModulUrl: string = "/api/karmed/modules"; getModul(): Observable { return this.http.get(this.getModulUrl); } }