Sha256: 35df7c9b7290fe63e92aa45873f158c8181c66e476714d0b143c9e39714328c2

Contents?: true

Size: 279 Bytes

Versions: 9

Compression:

Stored size: 279 Bytes

Contents

# frozen_string_literal: true

Ibrain::Core::Engine.routes.draw do
  if ::Ibrain::Config.api_version.blank?
    post '/api/graphql', to: 'graphql#execute'
  else
    post "/api/#{::Ibrain::Config.api_version.downcase}/graphql", controller: 'graphql', action: 'execute'
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
ibrain-core-0.1.8 config/routes.rb
ibrain-core-0.1.7 config/routes.rb
ibrain-core-0.1.6 config/routes.rb
ibrain-core-0.1.5 config/routes.rb
ibrain-core-0.1.4 config/routes.rb
ibrain-core-0.1.3 config/routes.rb
ibrain-core-0.1.2 config/routes.rb
ibrain-core-0.1.1 config/routes.rb
ibrain-core-0.1.0 config/routes.rb