Use controller over service to get authorized emails

A preliminary step to enable caching authorized emails data from the API
This commit is contained in:
Mustapha Hadid
2024-09-27 13:44:45 +01:00
committed by Aschepikov
parent 32cd4c36dd
commit 73e8ad717d
7 changed files with 55 additions and 26 deletions

View File

@@ -92,7 +92,7 @@ class Mailer extends APIEndpoint {
}
public function getAuthorizedEmailAddresses() {
$authorizedEmails = $this->bridge->getAuthorizedEmailAddresses();
$authorizedEmails = $this->authorizedEmailsController->getAuthorizedEmailAddresses();
return $this->successResponse($authorizedEmails);
}