diff --git a/app/config/services.php b/app/config/services.php index 99790bd45f..01de0c0985 100644 --- a/app/config/services.php +++ b/app/config/services.php @@ -117,4 +117,11 @@ return [ 'sdk' => true, 'tests' => false, ], + 'v1/graphql' => [ + 'name' => 'GraphQL', + 'description' => 'GraphQL Endpoint', + 'controller' => 'controllers/api/graphql.php', + 'sdk' => false, + 'tests' => false, + ], ]; diff --git a/app/controllers/api/graphql.php b/app/controllers/api/graphql.php new file mode 100644 index 0000000000..c550a3219b --- /dev/null +++ b/app/controllers/api/graphql.php @@ -0,0 +1,22 @@ +post('/v1/graphql') + ->desc('GraphQL Endpoint') + ->label('scope', 'public') + ->action( + function () { + throw new Exception('Method not supported yet', 500); + } + );