Class: GraphiQL::Rails::EditorsController

Inherits:
InternalAreaController
  • Object
show all
Defined in:
app/controllers/graphiql/rails/editors_controller.rb

Instance Method Summary collapse

Instance Method Details

#graphql_endpoint_pathObject



9
10
11
# File 'app/controllers/graphiql/rails/editors_controller.rb', line 9

def graphql_endpoint_path
  params[:graphql_path] || raise(%|You must include `graphql_path: "/my/endpoint"` when mounting GraphiQL::Rails::Engine|)
end

#showObject



4
5
6
# File 'app/controllers/graphiql/rails/editors_controller.rb', line 4

def show
  render layout: false
end