Fix blacklist entries

This commit is contained in:
Jake Barnby
2022-12-08 13:10:35 +13:00
parent 4de3289ebb
commit da2821b4a8
3 changed files with 40 additions and 35 deletions
+6 -2
View File
@@ -81,8 +81,9 @@ class Schema
* schema defining types and resolvers for all response models.
*
* @param App $utopia
* @param callable $complexity
* @return array
* @throws \Exception
* @throws Exception
*/
protected static function api(App $utopia, callable $complexity): array
{
@@ -134,7 +135,10 @@ class Schema
* queries and mutations for the collections they make up.
*
* @param App $utopia
* @param callable $getAttributes
* @param callable $complexity
* @param callable $attributes
* @param array $urls
* @param array $params
* @return array
* @throws \Exception
*/
+3 -3
View File
@@ -17,9 +17,9 @@ class Mapper
private static array $models = [];
private static array $args = [];
private static array $blacklist = [
'v1/mock',
'v1/graphql',
'v1/account/sessions/oauth2',
'/v1/mock',
'/v1/graphql',
'/v1/account/sessions/oauth2',
];
public static function init(array $models): void