Adds getTarget and list targets controller to user and account

This commit is contained in:
prateek banga
2023-08-16 20:13:38 +05:30
parent ab655e69e6
commit c7dec3762b
5 changed files with 119 additions and 1 deletions
+1
View File
@@ -81,6 +81,7 @@ class Exception extends \Exception
public const USER_OAUTH2_BAD_REQUEST = 'user_oauth2_bad_request';
public const USER_OAUTH2_UNAUTHORIZED = 'user_oauth2_unauthorized';
public const USER_OAUTH2_PROVIDER_ERROR = 'user_oauth2_provider_error';
public const USER_TARGET_NOT_FOUND = 'user_target_not_found';
/** Teams */
public const TEAM_NOT_FOUND = 'team_not_found';
@@ -34,7 +34,7 @@ class BaseList extends Model
$namesWithCap = [
'documents', 'collections', 'users', 'files', 'buckets', 'functions',
'deployments', 'executions', 'projects', 'webhooks', 'keys',
'platforms', 'domains', 'memberships', 'teams'
'platforms', 'domains', 'memberships', 'teams', 'targets'
];
if (\in_array($name, $namesWithCap)) {