// import { HttpClient } from '@angular/common/http'; // import { Injectable } from '@angular/core'; // import { Observable } from 'rxjs'; // import { IDataUser, ISingleUser } from '../interfaces/user'; // @Injectable({ // providedIn: 'root', // }) // export class UserService { // url = 'http://localhost:8888/users'; // constructor(private http: HttpClient) {} // getAllUsers(): Observable { // return this.http.get(this.url); // } // getUser(uid: string | null): Observable { // return this.http.get(this.url + '/' + uid); // } // }