add history list (#94)
Some checks failed
Backend Build and Test / build (push) Has been cancelled
Backend Deploy / build (push) Has been cancelled

closes #68

Reviewed-on: #94
This commit was merged in pull request #94.
This commit is contained in:
2025-05-26 13:40:14 +02:00
parent 45f40a7976
commit 11913d72aa
9 changed files with 104 additions and 7 deletions

View File

@@ -0,0 +1,17 @@
import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { Observable } from 'rxjs';
import { History } from '../models/history';
@Injectable({
providedIn: 'root'
})
export class HistoryService {
private url = 'http://localhost:8080/api';
constructor(private http: HttpClient) {}
getHistoryList(userId: number): Observable<Array<History>> {
return this.http.get<History[]>(`${this.url}/user/${userId}/history`);
}
}