added endpoints to see all user without any auth for testing
This commit is contained in:
@ -206,4 +206,8 @@ public class AdminApiService {
|
||||
public Iterable<User> getPendingUsers() {
|
||||
return this.userService.getPendingAccounts();
|
||||
}
|
||||
|
||||
public Iterable<Administrator> getAllAdmins() {
|
||||
return this.administratorService.allAdministrators();
|
||||
}
|
||||
}
|
||||
|
@ -219,4 +219,8 @@ public class EntrepreneurApiService {
|
||||
}
|
||||
throw new ResponseStatusException(HttpStatus.CONFLICT, "User already exists in the system");
|
||||
}
|
||||
|
||||
public Iterable<Entrepreneur> getAllEntrepreneurs() {
|
||||
return entrepreneurService.getAllEntrepreneurs();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user