diff options
Diffstat (limited to 'config')
-rw-r--r-- | config/routes/api.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/config/routes/api.rb b/config/routes/api.rb index 54ce6d01df0..b1aebf4d606 100644 --- a/config/routes/api.rb +++ b/config/routes/api.rb @@ -1,5 +1,7 @@ -post '/api/graphql', to: 'graphql#execute' -mount GraphiQL::Rails::Engine, at: '/api/graphiql', graphql_path: '/api/graphql' +constraints(::Constraints::FeatureConstrainer.new(:graphql)) do + post '/api/graphql', to: 'graphql#execute' + mount GraphiQL::Rails::Engine, at: '/-/graphql-explorer', graphql_path: '/api/graphql' +end API::API.logger Rails.logger mount API::API => '/' |