auth frontend

This commit is contained in:
eneller
2026-03-07 13:53:46 +01:00
parent 3300622191
commit 111d1a7b48
6 changed files with 30 additions and 20 deletions

View File

@@ -14,4 +14,7 @@ export class APIService {
getTransactions(): Observable<Transaction[]>{
return this.http.get<Transaction[]>(this.apiUrl + '/transactions');
}
login(username: string, password: string): Observable<any>{
return this.http.post(this.apiUrl + '/auth/login',{ 'username': username, 'password': password});
}
}