Sha256: ded581056f19aacf5ce44b72e6dc30e5a5218114d8282d487433684a009c8705
Contents?: true
Size: 569 Bytes
Versions: 11
Compression:
Stored size: 569 Bytes
Contents
# frozen_string_literal: true # rubocop:disable Metrics/MethodLength module Osso module RouteMap def self.included(klass) klass.class_eval do use Osso::Admin use Osso::Auth use Osso::Oauth post '/graphql' do enterprise_protected! result = Osso::GraphQL::Schema.execute( params[:query], variables: params[:variables], context: { scope: current_scope }, ) json result end end end end end # rubocop:enable Metrics/MethodLength
Version data entries
11 entries across 11 versions & 1 rubygems