From eff4c940668670b302ca4d7339a43f2ec5be4277 Mon Sep 17 00:00:00 2001 From: Eldad Fux Date: Fri, 3 Jan 2020 23:16:26 +0200 Subject: [PATCH] Added empty graphql controller --- app/config/services.php | 7 +++++++ app/controllers/api/graphql.php | 22 ++++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 app/controllers/api/graphql.php 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); + } + );