Updated and synced public available scopes

This commit is contained in:
Eldad Fux
2020-01-12 13:46:39 +02:00
parent 327b82dffc
commit f77aa39ff7
5 changed files with 26 additions and 33 deletions
+1 -12
View File
@@ -18,18 +18,7 @@ use Cron\CronExpression;
include_once __DIR__ . '/../shared/api.php';
$scopes = [ // TODO sync with console UI list
'users.read',
'users.write',
'teams.read',
'teams.write',
'collections.read',
'collections.write',
'documents.read',
'documents.write',
'files.read',
'files.write',
];
$scopes = include __DIR__.'/../../../app/config/scopes.php';
$utopia->get('/v1/projects')
->desc('List Projects')