1234567891011121314151617 |
- import { Injectable } from '@angular/core';
- import { HttpClient } from '@angular/common/http';
- import { Observable } from 'rxjs';
- @Injectable({
- providedIn: 'root'
- })
- export class UserService {
- private apiUrl = 'http://127.0.0.1:4040/apps/DevServer/browser/survey';
- constructor(private http: HttpClient) {}
-
- getCurrentUser(): Observable<any> {
- return this.http.get(`${this.apiUrl}/current-user`);
- }
- }
|