diff --git a/src/accounts/account.service.ts b/src/accounts/account.service.ts index f183fbb..74b55eb 100644 --- a/src/accounts/account.service.ts +++ b/src/accounts/account.service.ts @@ -12,13 +12,14 @@ export class AccountService { private http: HttpClient ) {} - url(id?: Number): string { + private url(id?: Number): string { if(id) { return `/api/account/${id}`; } return `/api/account`; } + query(): Observable { return this.http.get(this.url()); } diff --git a/src/operations/operation.service.ts b/src/operations/operation.service.ts index 0286040..7504612 100644 --- a/src/operations/operation.service.ts +++ b/src/operations/operation.service.ts @@ -23,7 +23,7 @@ export class OperationService { return date; } - url(id?: Number): string { + private url(id?: Number): string { if(id) { return `/api/operation/${id}`; }