$this->l->t('Your redirect URL needs to be a full URL for example: https://yourdomain.com/path')], Http::STATUS_BAD_REQUEST); } $result = $this->clientService->addClient($name, $redirectUri); return new JSONResponse($result); } #[PasswordConfirmationRequired] public function deleteClient(int $id): JSONResponse { $this->clientService->deleteClient($id); return new JSONResponse([]); } }