import { Injectable } from '@angular/core'; import { HttpClient } from '@angular/common/http'; import { Observable } from 'rxjs'; const API_URL = 'http://localhost:8080/api/test/'; @Injectable({ providedIn: 'root', }) export class DataService { constructor(private http: HttpClient) {} // getPublicContent(): Observable { // return this.http.get(API_URL + 'all', { responseType: 'text' }); // } // getUserBoard(): Observable { // return this.http.get(API_URL + 'user', { responseType: 'text' }); // } // getModeratorBoard(): Observable { // return this.http.get(API_URL + 'mod', { responseType: 'text' }); // } // getAdminBoard(): Observable { // return this.http.get(API_URL + 'admin', { responseType: 'text' }); // } }