feat(navbar): add current user balance display in navbar
This commit is contained in:
parent
63db07b6ae
commit
564601f7bc
3 changed files with 22 additions and 1 deletions
|
@ -14,6 +14,10 @@ export class UserService {
|
|||
return this.http.get<User | null>(`/backend/user/${id}`).pipe(catchError(() => EMPTY));
|
||||
}
|
||||
|
||||
public getCurrentUser(): Observable<User | null> {
|
||||
return this.http.get<User | null>(`/backend/user`).pipe(catchError(() => EMPTY));
|
||||
}
|
||||
|
||||
public createUser(id: string, username: string): Observable<User> {
|
||||
return this.http.post<User>('/backend/user', {
|
||||
keycloakId: id,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue