Skip to content
Snippets Groups Projects
Commit 89c06356 authored by kbeyro's avatar kbeyro
Browse files

Fix URL for getAll

parent ff8703d1
No related branches found
No related tags found
2 merge requests!108Develop,!70Fix URL for getAll
......@@ -20,7 +20,7 @@ export class UserService extends GenericDataService {
public getAll(domainId?: number): Observable<User[]> {
return this.get<User[]>(domainId === undefined || domainId === this.domainService.getGlobalDomainId() ?
this.getUsersUrl() : this.getDomainUsersUrl(domainId));
this.getUsersUrlWithoutDash() : this.getDomainUsersUrl(domainId));
}
public getOne(userId: number, domainId?: number): Observable<User> {
......@@ -87,6 +87,11 @@ export class UserService extends GenericDataService {
return this.appConfig.getApiUrl() + '/users/';
}
protected getUsersUrlWithoutDash(): string {
return this.appConfig.getApiUrl() + '/users';
}
protected getDomainUsersUrl(domainId: number): string {
return this.appConfig.getApiUrl() + '/domains/' + domainId + '/users';
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment