summaryrefslogtreecommitdiff
path: root/config/routes/api.rb
diff options
context:
space:
mode:
authorNick Thomas <nick@gitlab.com>2017-08-16 14:04:41 +0100
committerBob Van Landuyt <bob@vanlanduyt.co>2018-06-05 20:47:42 +0200
commit9c6c17cbcdb8bf8185fc1b873dcfd08f723e4df5 (patch)
tree624dba30e87ed0ea39afa0535d92c37c7718daef /config/routes/api.rb
parent67dc43db2f30095cce7fe01d7f475d084be936e8 (diff)
downloadgitlab-ce-9c6c17cbcdb8bf8185fc1b873dcfd08f723e4df5.tar.gz
Add a minimal GraphQL API
Diffstat (limited to 'config/routes/api.rb')
-rw-r--r--config/routes/api.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/config/routes/api.rb b/config/routes/api.rb
index ce7a7c88900..54ce6d01df0 100644
--- a/config/routes/api.rb
+++ b/config/routes/api.rb
@@ -1,2 +1,5 @@
+post '/api/graphql', to: 'graphql#execute'
+mount GraphiQL::Rails::Engine, at: '/api/graphiql', graphql_path: '/api/graphql'
+
API::API.logger Rails.logger
mount API::API => '/'