Files
nairobi/app/controllers/graphql_controller.rb
2016-09-28 12:51:05 +02:00

13 lines
277 B
Ruby

class GraphqlController < ApplicationController
authorize_resource :proposal
def query
#puts "I'm the GraphqlController inside the #query action!!"
render json: ConsulSchema.execute(
params[:query],
variables: params[:variables] || {}
)
end
end