Sha256: d6901c11f2470d08f7fcd4509b0c400b93ed2bbe4b36e81827e55a243db87cd6
Contents?: true
Size: 336 Bytes
Versions: 1
Compression:
Stored size: 336 Bytes
Contents
module Api module V1 class GraphqlController < ApplicationController include GraphqlDevise::Concerns::SetUserByToken before_action :authenticate_user! def graphql render json: DummySchema.execute(params[:query]) end private def verify_authenticity_token end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
graphql_devise-0.11.4 | spec/dummy/app/controllers/api/v1/graphql_controller.rb |