From 0b0c771558988915ebe011c93a43b57f3e118b50 Mon Sep 17 00:00:00 2001 From: Alexis Lahouze Date: Mon, 31 Jul 2017 13:16:18 +0200 Subject: [PATCH] Set url function to private. --- src/accounts/account.service.ts | 3 ++- src/operations/operation.service.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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}`; }